Variable Set UI Policy Not triggering properly

ChrisLawer
Mega Guru

I have a catalog item where I have 4 variable sets in addition to the initial questions on the form. Each set pertains to a different section on the form.  In each set the 1st question is set as visible and mandatory. Based on input of the first question I turn on the remaining questions in the set. This works flawlessly in the first 3 variable sets, but on the last variable set when I answer the trigger question only one question displays.  The one that triggers is the one that has the lowest order. The rest won't display. They are all initially set to be hidden, and not mandatory. The UI policy is ideally turning them too mandatory and visible. 

Thoughts?

1 ACCEPTED SOLUTION

ChrisLawer
Mega Guru

Thank you to everyone for the suggestions. We found the culprit. For some reason having each variable set be surrounded by Containers was breaking the UI policy for the set. These particular UI policies are set on the Variable set themselves and not on the base catalog item, so I'm not sure why having containers start and end variables was causing a problem for one of the sets. 

I removed the containers and everything worked fine.

View solution in original post

6 REPLIES 6

Tanushree Maiti
Tera Patron

Hi @ChrisLawer 

 

  • Verify if you've  another catalog-specific UI policy in place that might be forcing overriding your current logic.
  • Confirm that the internal variable names in the fourth set are unique and not accidentally matching variables reused from the first three sets.
  • Verify that the "Reverse if false" checkbox configuration matches the behavior you expect when the trigger question changes back.
     
Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti

ChrisLawer
Mega Guru

Thank you to everyone for the suggestions. We found the culprit. For some reason having each variable set be surrounded by Containers was breaking the UI policy for the set. These particular UI policies are set on the Variable set themselves and not on the base catalog item, so I'm not sure why having containers start and end variables was causing a problem for one of the sets. 

I removed the containers and everything worked fine.