Reference qualifier affects the UI policy

surya76
Tera Contributor

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.

6 REPLIES 6

JohnnySnow
Kilo Sage

@surya76 can you share some screenshots to understand this issue better

Thanks
Johnny

Please mark this response as correct or helpful if it assisted you with your question.

Hi medi c,

 

sorry that was a typo when I posted this question iam querying the right field in my script.

Medi C
Giga Sage

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.

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.