
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2022 09:10 AM
Hey - How would this solution be different if the variable was not independent.
example. -
I use u_category value name for category (variable) and use a select box to add other variables
I use u_topic as value name (variable) for topics that will populate under a category. it too, has a select box with a list of variables
Problem is under UI policy is it ask for variable name and the name is U_category or u_topic so I dont have ability to capture any of the select box variables that are listed under the select box for the u category or u topic variable.
There is also script running that populates topics based on categories. not sure if this is stopping the ui policy from doing what I'm asking.
My goal is to be able to hide one of the categories (other) from catalog item view, but still show the select box variable it be accessible on back-end (agent view) in the case (task view).
See attachments
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2022 01:20 PM
Yes
if you write tge same script in onchange client script instead of ui policy it will work
Incase if it still des not work let me know.
If it does please mark answer correct/helpful based on impact
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2022 11:44 AM
I see then use the below:-
g_form.removeOption('u_topic',,'fieldoption1'); g_form.removeOption('u_topic',,'fieldoption2'); g_form.removeOption('u_topic',,'fieldoption3');
Please mark answer correct/helpful based on impact

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2022 01:19 PM
no - show me on my screenshot where you are not seeing ONCHANGE already there please

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2022 12:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2022 01:03 PM
Hello
The script which you have used you need to use it on a onchange client script then it will work
Thanks
Please mark answer correct/helpful based on impact

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2022 01:11 PM
It is set to onChange. Can you show me where you are not seeing that?