sn-disabled not working

Kimnami
Kilo Explorer

Hello,

I am new to ServiceNow and I have a task which is to disable the approver field when the requestor is a manager.

<sn-record-picker field="approverField" sn-disabled="c.data.manager" table="'sys_user'" display-field="'user_name'" display-fields="'email'" value-field="'sys_id'" search-fields="'user_name'" default-query="'active=true^user_name!=NULL^name!=NULL^u_jobDescription=Manager'"></sn-record-picker>

Please help me figure out what is wrong with my code. sn-disabled is not working. What am I missing here?

 

2 REPLIES 2

SatheeshKumar
Kilo Sage
The below link may help you https://community.servicenow.com/community?id=community_question&sys_id=aa120fe9db98dbc01dcaf3231f9619ca&view_source=searchResult

sn-disabled="true" Try to replace this to test the issue is in your html part or from the variable you are passing.