Getting error "script error encountered when changing this field in servicenow" for some users with specific role(readOnly)

Chinmayee1
Giga Contributor

Hi ,

We have created a new role for alm_hardware table as 'table_alm_hw_read' and added that role to some users.

When users with that role , opens any record from that table , It shows below error for install_status field. In the table we "Script error encountered when changing this field in servicenow.Please contact your system Administrator"

Few more info : 

1) there is no onload script as Active true

2) there is only 1 onChange script where we have added the role validation : No luck (Its not even relevant in this case).

3)We don't have any display BR

4) Global on the client script is marked to 'True'.

5)There is nothing in self service for this table.

What might be the possible cause and how to fix this issue ? Please advise.

Thanks & Regards,

Chinmayee Mishra

8 REPLIES 8

Hi,

If this setup is in your personal instance and you are ok to share details url and some admin credentials then share here -> ankurb.snow@gmail.com

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Its fixed now. I added the role condition just below function onChange()

Glad to know

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Please visit your older questions and close by marking appropriate response as correct and helpful

Need help with excel attachment

Need help with creating excel file attachment using json object

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader