The CreatorCon Call for Content is officially open! Get started here.

when User select "data master is material" and "operation is new" code material is non mandatory

Srinivasu2
Tera Contributor

Hi Community,

 

Initially i written a UI policy for  with same variable for basic requirement, whenever user select Data master is Material will show this Code material will be visible and mandatory

 

Srinivasu2_0-1697045708039.png

Srinivasu2_1-1697045740206.png

later they asked me change when data master is material and operation is new code material should be Non Material

For that i have written another UI Policy as below

Srinivasu2_2-1697045787445.png

 

Could you please check and advise it works fine in catalog form but not work in RITM

Srinivasu2_3-1697045851567.png

 

Srinivasu2_4-1697045884902.png

 

Thanks & Regards,

Srinivasu

 

1 ACCEPTED SOLUTION

Brad Bowman
Kilo Patron
Kilo Patron

You have (at least) 2 Catalog UI Policies that are in conflict with each other.  One has an action for this variable to be mandatory, the other has an action for this variable to not be mandatory, so you will get erratic results.  Make sure the Order of the one that includes the second condition of Operation is New is a higher number than the Order on the other one.  If you can't get a better/complete definition for which values of which variables each other variable should be mandatory or not, then disable both of these and write the conditions in a Catalog Client Script.  Structuring it this way may help see where you have undefined or conflicting requirements.

View solution in original post

2 REPLIES 2

Brad Bowman
Kilo Patron
Kilo Patron

You have (at least) 2 Catalog UI Policies that are in conflict with each other.  One has an action for this variable to be mandatory, the other has an action for this variable to not be mandatory, so you will get erratic results.  Make sure the Order of the one that includes the second condition of Operation is New is a higher number than the Order on the other one.  If you can't get a better/complete definition for which values of which variables each other variable should be mandatory or not, then disable both of these and write the conditions in a Catalog Client Script.  Structuring it this way may help see where you have undefined or conflicting requirements.

Anubhav24
Mega Sage

Since both the conditions are referring to the same field it would be better to write a onchange client script on your data master field since that is common to both the conditions.

Also you can change the order and see if it gives you static result as already stated by @Brad Bowman .

You can also uncheck the reverse if false checkbox in the first UI policy as well and keep it checked in second UI Policy to see if it gives static results.