I have a custom visualforce tab called billing that loads a Skuid page. We have created some cool ways to submit billing for different codes through this page. However, I don’t want users with profiles of “Director” to be able to see the tab called “Behaviorist Billing” and I don’t want users with profiles of “Behaviorist” to see the “Director Billing” tab. My first approach was going to be to use page assignments to create different pages for Director profiles and a different page for profiles with Behaviorist profiles. My understanding is page assignments work for object tabs but not for custom visualforce tabs. Correct me if I am wrong. So my next thought was I could conditionally render the tab so only the right tab shows up based on the user profile of the user viewing the page. So I created a model called User, added the id field, the profile id, and profile name fields. I then added a condition. id = to user info of user viewing this page. I then go to the “Behaviorist Billing” tab and click on rendering and say: Source Model: User If no row in model: Ignore Field: profile.name Equals single specified value and I put in the “profile name” of the Behaviorist (I copied it from the Users profile to ensure the same spelling). The tab disappears but when I login as a user with the correct profile, in this case “behaviorist” the tab does not show up. Any thought on the best way to approach this or what I may be missing in my setup? Thanks Rich
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
