UI Policy Order Conflict: Variable Visibility Issue in Record Producer

adunay
Tera Contributor

Hi all!  

I'm working with a record producer and I've run into a conflict on the form.  My record producer has three total variables:

  1. A select box with two options
  2. A single line text variable - Set to Hidden
  3. A multi line text variable - Set to Hidden

I have two Catalog UI policies set up as follows:

  • Select Option one - Single line text variable becomes visible
  • Select Option two - Both the single line and multi line variables become visible

I'm having the following issue on the form:

  1. Select Option one - Single line text variable becomes visible
  2. Select Option two - Both variables become visible
  3. Select Option one again - no variable is visible
  4. Select Option two - Both variables become visible

I am unable to get the single line text variable to become visible again after selecting option two.  I think this may have something to do with the orders applied to the variables in the Catalog UI Policies, but everything I've tried doesn't seem to fix it. 

Any thoughts on how I can get this to function correctly without duplicating a bunch of variables?  Thanks!

2 ACCEPTED SOLUTIONS

Robbie
Kilo Patron
Kilo Patron

Hi @adunay,

 

Sometime working with multiple UI Policies can be 'fun' shall we say, especially on a Friday afternoon ; )

 

Whilst the order comes into play, my bet would be that the checkbox labelled 'Reverse if false' which is checked and set to true by default (meaning it will run) is the main factor in play.

This flag (as described on the UI Policy form) reverses the effects of the UI policy actions when the Conditions evaluate to false.

As both UI Policies probably have this checked, that's where the issue arises.

The 'Reverse if false' in visible with other fields in the 'Advanced view'

 

My first thought would be to inactivate (turn off) one of the UI polices and simply use the 'Reverse if false' to help implement your desired UI.

I would also control the visibility via the 'Scripting' via the 'Script' table and 'Run scripts' checkbox.

 

To help others (and for me to gain recognition for my efforts), please mark this response correct by clicking on Accept as Solution and/or Kudos.




Thanks, Robbie

 

Screenshot 2025-02-28 at 17.36.08.png

View solution in original post

Juhi Poddar
Kilo Patron

Hello @adunay 

To meet this requirement, you can create a single UI policy with the following configuration:

UI policy configuration:

JuhiPoddar_0-1741091276065.png

Catalog UI Policy Actions:

JuhiPoddar_1-1741091308124.png

Result:

When option1 is selected: Only single line text variable is visible.

JuhiPoddar_2-1741091344021.png

When option2 is selected: Both single line and multiline text variable is visible.

JuhiPoddar_4-1741091604123.png

Hope this helps!

 

"If you found my answer helpful, please like and mark it as an "accepted solution". It helps future readers to locate the solution easily and supports the community!"

 

Thank You
Juhi Poddar

 

 

View solution in original post

7 REPLIES 7

adunay
Tera Contributor

I've been doing some more digging and found that this is in fact because of the order.  When I switched orders around, the question would become visible on option one and not on option two.

I think I need to create a UI policy that states if Option one or Option two is selected, show variable 1.  Then a second UI Policy that controls variable 2.  Going to give that a shot now. 

Robbie
Kilo Patron
Kilo Patron

Hi @adunay,

 

Sometime working with multiple UI Policies can be 'fun' shall we say, especially on a Friday afternoon ; )

 

Whilst the order comes into play, my bet would be that the checkbox labelled 'Reverse if false' which is checked and set to true by default (meaning it will run) is the main factor in play.

This flag (as described on the UI Policy form) reverses the effects of the UI policy actions when the Conditions evaluate to false.

As both UI Policies probably have this checked, that's where the issue arises.

The 'Reverse if false' in visible with other fields in the 'Advanced view'

 

My first thought would be to inactivate (turn off) one of the UI polices and simply use the 'Reverse if false' to help implement your desired UI.

I would also control the visibility via the 'Scripting' via the 'Script' table and 'Run scripts' checkbox.

 

To help others (and for me to gain recognition for my efforts), please mark this response correct by clicking on Accept as Solution and/or Kudos.




Thanks, Robbie

 

Screenshot 2025-02-28 at 17.36.08.png

adunay
Tera Contributor

Thanks Robbie!  I'll give that a shot!

Rohit  Singh
Mega Sage

Hi @adunay 

 

Let the order remain same for both the UI policies and in the UI policy where you have only one variable marked as visible true in that UI policy uncheck "Reverse if False". 

 

Then you will gonna achieve what you are looking for.

 

If my response helped, please mark it helpful and accept the solution so that it benefits future readers.

 

Regards,
Rohit