- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2024 09:15 AM - edited 01-12-2024 09:17 AM
Situation:
I have an order guide that contains a variable set. In that variable set is a variable named ‘employee_type’. That variable is a select box that contains several choices. One of the choices is ‘USDH’. I want to hide that option from the drop down menu on the order guide, but not inactivate it. The option still needs to be available to a flow that automates the form for certain situations.
Attempts:
I have attempted to create a Catalog UI Policy named ‘Hide Direct Hire Types’ which utilizes the script g_form.removeOption(‘vs_employee_type’, ‘USDH’); however this has not worked. I have utilized a similar script on a catalog item to suppress a variable option previously, but this doesn’t seem to be working in this use case.
Question:
Is it possible to use this method to suppress the option? Does it require different formatting of the variable name? Does this not work with order guides or variables sets?
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2024 09:33 AM
This started working once I made sure that the 'Run scripts in UI type' field was set to 'All' and not just 'Desktop'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2024 09:33 AM
This started working once I made sure that the 'Run scripts in UI type' field was set to 'All' and not just 'Desktop'.