How do we check if a field is read only in Client Script?

um30
ServiceNow Employee
ServiceNow Employee

How do we check if a field is read only in Client Script?

7 REPLIES 7

Harish KM
Kilo Patron
Kilo Patron

Try like this


g_form.isDisabled('FIELD_NAME');


Regards
Harish

Harish KM
Kilo Patron
Kilo Patron

find_real_file.png


Regards
Harish

um30
ServiceNow Employee
ServiceNow Employee

Is it recommended to use isDisabled?


I am not aware of any alternate way. But that will get you the readOnly field


Regards
Harish