Category and SubCategory fields read only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Dear all,
I have an Incident default view form where when I open an Incident I can see the Category and SubCategory field in Read only as seen in attached picture
In my use case, I need to set the Category field mandatory and SubCategory vidible only when Category field is filled.
I could not find why those fieds are in readonly on formload when you create a new incident
Any help or idea?
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
48m ago
Hi @User687957
Are you getting it in your PDI or Client instance.
Somewhere it has been customized. Check following components by which mentioned fields have been made Read Only.
- UI Policies: Check for active UI Policies targeting the Incident (incident) table where Short description, Category, or Subcategory are set to read-only on load without proper reverse conditions.
- Client Scripts: Look for onLoad Client Scripts using g_form.setReadOnly('category', true) or locking down fields based on user roles or form states.
- Dictionary Entries: Right-click the field label on the form, select Configure Dictionary, and verify whether the Read only attribute is accidentally checked globally for the field definition.
- Access Control Lists (ACLs): Review field-level write ACLs on the Incident table to ensure user roles permit editing these fields upon creation
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
47m ago
hi @User687957 ,
UI Policy / Data Policy that may be setting Category and Subcategory to read-only.
Client Scripts that contains g_form.setReadOnly('your field name ') or setDisabled().
Open the Dictionary record for the Categpry field and check 'read only' checkbox.
For your requirement, once you identify and remove the source of the read-only behavior, an On Load UI Policy can make Category mandatory, and an On Change UI Policy on Category can make Subcategory visible when Category has a value.
I would avoid simply adding another Client Script to force the fields editable, because another UI Policy/Client Script may immediately override it.
If this helps, please mark it as Helpful and accept the solution.
Regards,
Tejas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
45m ago
Hi @User687957 ,
is this issue with all user including admin?.
is this issue is on PDI?.
Please check UI Policies, Client Script, Dictionary entries and also check if any Custom ACL in placed for this
Regards
BK
LinkedIn: https://www.linkedin.com/in/bhavyashree-karanth-55032a121
YouTube: https://www.youtube.com/@NowWithBhavya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5m ago
Dear all,
In reply to your question :
is this issue with all user including admin? : YES
is this issue is on PDI? : We have our personnal dev instance
I have check all of the following :
- UI Policies: Check for active UI Policies targeting the Incident (incident) table where Short description, Category, or Subcategory are set to read-only on load without proper reverse conditions.
- Client Scripts: Look for onLoad Client Scripts using g_form.setReadOnly('category', true) or locking down fields based on user roles or form states.
- Dictionary Entries: Right-click the field label on the form, select Configure Dictionary, and verify whether the Read only attribute is accidentally checked globally for the field definition.
- Access Control Lists (ACLs): Review field-level write ACLs on the Incident table to ensure user roles permit editing these fields upon creation
Event when loged as Systetem admin, the category and subcategory is read only
Any idea?
