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
ReidCarlbergReidCarlberg 

Describe Layout - How Do I Capture "Read Only"?

I've been working with the Describe Layout utility but am not getting where I would capture a field's read-only property.  My first thought was that "editable" on DescribeLayoutItem would simply be set to false.  No dice. Any advice? 

Thanks!
Edward GeeEdward Gee
isEditable() is the correct property.  I'm guessing you're running the API as a System Administrator of the org.  System Administrators seem to always have access to all fields, regardless if you set the property of a layout item to read-only.  Try using a different user who isn't a System Administrator and you may see the correct results.

- Ed
ReidCarlbergReidCarlberg
Hey Ed,

Thanks a bunch.  That was exactly it.  I appreciate your help.

Reid