Supress a variable option in a variable set utilized by an order guide.

Nathan-Pinkston
Tera Expert

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?

1 ACCEPTED SOLUTION

Nathan-Pinkston
Tera Expert

This started working once I made sure that the 'Run scripts in UI type' field was set to 'All' and not just 'Desktop'.

View solution in original post

1 REPLY 1

Nathan-Pinkston
Tera Expert

This started working once I made sure that the 'Run scripts in UI type' field was set to 'All' and not just 'Desktop'.