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
AbAb 

Get the required attribute from page layout

Hello,
Is there any way to know if the pagelayout has the attribute as required.
if yes, block the save.

thank you in advance
Best Answer chosen by Ab
VinayVinay (Salesforce Developers) 
Hi Sandrine,

You would need to check manually over navigating to page layout and check or uncheck required attribute.

If it's required and left blank it won't allow you to save as this is expected behavior.

https://help.salesforce.com/articleView?id=000323820&type=1&mode=1

Thanks,