Page 1 of 1

Hide a field value for user (v8)

Posted: Sun Jun 16, 2024 6:47 pm
by rewo

Hello,

I know this is not a support forum, but your help will be highly appreciated as I am struggling with something.

My environment is build with PHPMaker 8.

I have a table "tablerecord" where I have a column "PRICE_BUY", that I need to hide if the user from table "users" is user_type = User.

I am using and existing user table.

Thank you in advance


Re: Hide a field value for user (v8)

Posted: Sun Jun 16, 2024 10:01 pm
by ahad

Try this its worked on my code

if ($CurrentUserRole == 9){ // user information 
        $this>Campaign_Details>Visible = FALSE;}