Loading...
Loading...
When a URL field exists on a form that is linked to a referenced table and the field is set to Read only through a write ACL, changing the reference field causes the following JavaScript error: js_includes_doctype.jsx:19428 Uncaught TypeError: Cannot read property 'style' of null at e.isDisabled (js_includes_doctype.jsx:19428) at e.isDisabled (js_includes_doctype.jsx:5742) at e.clearRelated (js_includes_doctype.jsx:19229) at e._clearDerivedFields (js_includes_doctype.jsx:18338) at e.referenceSelect (js_includes_doctype.jsx:18323) at e.select (js_includes_doctype.jsx:18290) at e.onMouseUp (js_includes_doctype.jsx:18377) at HTMLTableRowElement.<anonymous> (js_includes_doctype.jsx:11)
Log in to the instance as an admin user. Go to the Users (sys_user) table and create a URL type field called Web Site Address. Open the user record for Abel Tuter and put the value "http://www.example.com" in the newly created field Go to Incident > Open and open an incident. Right-click in the form header, and choose Configure > Form Layout. Place the field "caller_i --> u_web_site_address" on the form, right below the Caller field, and click Update. Elevate your role to security_admin and then create a "write" ACL on sys_user.u_web_site_address. Put a script containing "false;" mark Admin Override as "false" so that this field is no longer writtable by any user. Go to incident.do and create a new incident. Set the Caller to Abel Tuter. Notice that the JavaScript error: js_includes_doctype.jsx:19428 Uncaught TypeError: Cannot read property 'style' of null
After carefully considering the severity and frequency of the issue, and the cost and risk of attempting a fix, it has been decided to not address this issue in any current or near future releases. We do not make these decisions lightly, and we apologize for any inconvenience. As a workaround, instead of using an ACL to make the field read only, use a UI Policy to avoid this error. The UI Policy needs to be written on the parent form. For example, if you want to set read-only a dot walked field on the Incident form, the UI Policy has to be written on the Incident table. The documentation pages below show some example procedures on how to create a UI Policy: https://docs.servicenow.com/#ariaid-title3
PRB964339
Click on a version to see all relevant bugs
ServiceNow Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.