Important Update: Archer Community Scheduled Maintenance on November 23–24 - New Community Launching Soon! Learn More..
2021-05-03 02:15 PM
Hello,
$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?
2021-05-05 11:02 AM
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
2021-05-03 02:36 PM
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?
Advisory Consultant
2021-05-04 03:54 PM
Set read-only through conditional layout
2021-05-05 10:40 AM
the field is not on a tab and visible to the user
2021-05-05 11:02 AM
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
2021-05-05 11:47 AM
thanks David it worked!