Catalog UI Actions: Clear Variable Value When Applying to a Container
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2023 08:27 AM
When creating Catalog UI Policies for when to display fields, we often approach it from the "negative" point of view (i.e. when to "hide" the variable), so in our Catalog UI Actions wer can use the "Clear Variable Value" setting. By checking this, whenever the variable is hidden, it also removes the value (which is helpful in case they toggle some variables back-and-forth, and for use in out Catalog UI Policies that depend on these fields). We have been following this practice for years and it works great.
We have a situation where there are a whole group of variables that we want displayed/hidden upon some condition. So we enclosed them all within a Container. Then, in our Catalog UI Action, if we choose the Container, we can hide/display ALL these variables at once, which is great, as then we do not need to create a Catalog UI Action for each and every variable within the Container.
However, it appears that the "Clear Variable Value" does not work on Containers. We were hoping it would clear the value on ALL variables found in the Container, but it does not. Perhaps this setting only works when used on individual variables.
Is this true? If so, does anyone know how to clear all the variables within the Container at the same time, other than by creating a separate Catalog UI Action for each one, or by explicitly listing each one in a Catalog Client Script? (Please do not respond suggesting either of these two ways - I know how to do them - I just want to know if there is maybe a shorter/easier way I am missing).