
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2020 11:04 AM
I have a catalog item that is used for different offices. One of the variables is a Select Box. I need to have different Question Choices depending on the location of the user. I have setup user criteria for each location. How can can I hide/show question choices based on user criteria? Catalog UI Policies don't seem to have the option.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2020 12:26 PM
You would need to have a GlideAjax and Onchange client script to get the location and show/hide the choice values.
https://www.servicenowguru.com/scripting/user-object-cheat-sheet/
http://servicenowmypath.blogspot.com/2017/10/glideajax-example-servicenow.html
Please mark my response as correct and helpful if it helped solved your question.
-Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2020 11:28 AM
Hi Donald,
You could achieve this via onLoad Client Script, use the glideajax functionality to call the scriptinclude to validate the user criteria and handle the choices in client script with the functions:
g_form.addOption()
g_form.removeOption()
Kindly mark my answer as Correct and Helpful based on the Impact.
Regards,
Alok
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2020 12:26 PM
You would need to have a GlideAjax and Onchange client script to get the location and show/hide the choice values.
https://www.servicenowguru.com/scripting/user-object-cheat-sheet/
http://servicenowmypath.blogspot.com/2017/10/glideajax-example-servicenow.html
Please mark my response as correct and helpful if it helped solved your question.
-Thanks