Forcetalks | Jean | Activity https://www.forcetalks.com/jean-grey/activity/ Activity feed for Jean. Fri, 30 Jan 2026 19:25:39 +0530 https://buddypress.org/?v=2.16.0 en-US 30 hourly 2 63327b0ded91c5ebebb7d07404fd2ce3 Jean replied to the discussion How to limit section visibility based on profile in visualforce page? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-limit-section-visibility-based-on-profile-in-visualforce-page/#post-31035 Sun, 05 Aug 2018 18:02:53 +0530 Reply to How to limit section visibility based on profile in visualforce page?

You can use the rendered attribute on the pageblock or pageblock section, and use the UserInfo methods on your apex class to get the logged in user's profile information. This will render the page conditionally depending on the profile.

for example: <apex:pageBlock rendered="{!userProfile=='System Administrator'}">

]]>
707cf6d95e947ac4094d15d22d1544f6 Jean became a registered member https://www.forcetalks.com/activity/p/73688/ Sun, 05 Aug 2018 17:52:49 +0530 0