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
Rakesh ERakesh E 

unable to see custom field value on VF page

Hi,

 

i have a field which is not visible to my profile in field level security.

so i am unable to view this value in the VF page.

 

but my confusion is when i go to backend and check in debug logs i am able to view those value there. 

just want to understand how this visibility is handled in salesforce.

 

please reply me if anyone has idea about this

 

Thank you

 

Regards

Rakesh

asish1989asish1989

Hi

Actually Apex executed in system context not in user context,That means user permission ,field level security and sharing rules are not taken in to account in system mode. Here is an exception to rule ,Annonymous block and standard controller runs in user mode,here field level security are taken into account.

 

Did this post answers your question,if so please mark it as solution so that other'sget benifited

 

 

Thanks