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
Trinath ReddyTrinath Reddy 

Role wise i want to show output,If Role is CEO i want to display one response in Vf page ,If the Role is CFO i want to display another response in Vf page,Please help on this

Anjum Attar 26Anjum Attar 26
query on user and get it's role after that on VF page create two pageblocks which will display 2 different responses. On VF page check the role of user If it is Role A then rendered pageblock A otherwise rendered pageblock B. Initially keep both pageblocks hidden. Hope this will help you.