$CM.getFieldById(field_Id).value is returning undefined for a read only record permission field in edit mode. Is there a way to accomplish this?
It would help if I read the ask correctly
The $CM.getFieldById() function only works for a few field types and record permission fields isn't one of them.
Use the following instead,
$('input[id$="f' + fieldID + 'c_shf"]').val();
Advisory Consultant - Archer, an RSA Business
View solution in original post
Is the field set as read-only by a Apply Conditional Layout or is the field access set to private?
Also is the field on a tab that's not visible to the user?
Set read-only through conditional layout
the field is not on a tab and visible to the user
thanks David it worked!