+ Start a Discussion

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? 

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
Hey Ed,

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