function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
priyanshu chaudharypriyanshu chaudhary 

Tab visibility

I have a scenario : User Object have a checkbox field 

If check box is true -  Show Account tab to that user.

If check box is false - Hide Account tab to that user.

All users have same profile . Please suggest how to achieve .

Harshit Garg 6Harshit Garg 6
Hi Priyanshu,

You want that scenario for all users or you want only for specific users. Please confirm me.

Thanks,
Harshit Garg
priyanshu chaudharypriyanshu chaudhary
Harshit ,
It is for all users wherever the flag is true should have access to Account Tab otherwise not.
Harshit Garg 6Harshit Garg 6
If i am not wrong
Example - Suppose we have 3 users (A,B,C). I am making A,B,C user and at the time of making i have checked the checkbox field that time account tab visible for that users.

If anybody has unchecked the B user checkbox. then account tab will unvisibel for B user.

That's y i have asked below question.
priyanshu chaudharypriyanshu chaudhary

You got it correct Harshit

Everytime I on/off the flag , Account Tab visibility to the user changes visibel/invisibel respectively .

How to achive ?