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
cw.ax43cw.ax43 

Field Read-Only Validation

My understanding is that we can use Field.isUpdateable() to validate if a field is Read-Only in Field-Level Security Page. However, when I turn some field's Read-Only on, isUpdateable() still returned TRUE. Did I do anything wrong?

Thanks for help.

SuperfellSuperfell
If you're an admin, or anyone in a profile with the "Edit Read Only Fields" turned on, then feilds that are marked as read-only in the FLS will continue to be updatable. (because the perm trumps the FLS settings)