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
sfdc freshersfdc fresher 

unable to set the filed level security to required filed of an object

hi everyone,

I see from doc that "even though one filed is requried on pagelayout, if we set the filed level security as Read only..then we cant edit that filed ....."..

but am unable to set to particular filed as Readonly becoz its required filed..(object>fileds>particular filed>set the filed level security...i couldnt see any edit option there...i see just save and cancel buttons are avaible).
Could any one please suggest me how can i achieve this.

Thanks
 
SandhyaSandhya (Salesforce Developers) 
Hi,

The field-level security overrides the page layout so first remove the field as required from page layout and then make read only from filed level security.Now if you again make as required field on page layout it will be read only as field-level security overrides the page layout.


Best Regards,
Sandhya
sfdc freshersfdc fresher
thanq Sandhya,

 does it mean like to set filed level security for a mandatory filed we need to make it as non-mandatory and then set the filed level security and then need to make it as required ..is it?