Reference qualifier affects the UI policy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2025 02:41 PM
I am writing to seek assistance with an issue I am encountering in ServiceNow related to the reference qualifier for a catalog item field. Here are the details:
- Field Name: Category (a lookup select box field pointing to the sys_choice table)
- Reference Qualifier Used:
javascript:'name=sc_req_item^element=u_sub_category_^inactive=false^dependent_value=' + current.variables.itsm_subcategory
Issue: When I create a new UI policy and include this category field in the condition, the choices displayed are in a different language. However, when I use the following reference qualifier, the correct choices are displayed in the UI policy:
nameINjavascript:getTableExtensions('sc_req_item')^element=u_sub_category
I would appreciate any insights or solutions you could provide to resolve this issue. Specifically, I am looking to understand why the first reference qualifier causes the choices to display in a different language and how to ensure the correct choices are displayed consistently.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2025 03:37 PM
@surya76 can you share some screenshots to understand this issue better
Johnny
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2025 08:58 PM
Hi medi c,
sorry that was a typo when I posted this question iam querying the right field in my script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2025 03:45 PM
Hello @surya76,
You have a typo in "u_sub_category_" (there is _ at the end). Hence, you might be querying the wrong element.
Below is the corrected version and please ensure "current.variables.itsm_subcategory" is not empty:
javascript:'name=sc_req_item^element=u_sub_category^inactive=false^dependent_value=' + current.variables.itsm_subcategory
If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2025 06:03 PM
Hi @surya76,
Was this helpful? Is the issue resolved?
If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.