cancel
Showing results for 
Search instead for 
Did you mean: 

Read read only record permission field value in custom object

Anderson
Contributor

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?

1 ACCEPTED SOLUTION

Accepted Solutions

DavidPetty
Archer Employee
Archer Employee

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

5 REPLIES 5

DavidPetty
Archer Employee
Archer Employee

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 - Archer, an RSA Business

Set read-only through conditional layout

the field is not on a tab and visible to the user

DavidPetty
Archer Employee
Archer Employee

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

thanks David it worked!