Activity Forums Salesforce® Discussions Is it possible to detect user permissions for a field simply on Salesforce visualforce page?

  • Mohit

    Member
    September 15, 2016 at 5:48 am

    Hi Pranav,

    1)VisualForce Component:-By using the apex:inputField and apex:outputField components to accept and display data to the user, the platform will automatically respect the current users Field Level Security.This is the easiest way to implement field level security in your page.

    2)VisualForce $ObjectType:- You can also access this information using the $ObjectType global variable. An eg:- apex:outputText value="{!contactName}" rendered="{!$ObjectType.Contact.fields.Name.Accessible}"

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos