UI Policy category and subcategory field

mjocasio23
Tera Expert

I have the following fields in a dependent relationship ( Category and subcategory). Having said that.... I have three category fields values which does not depend on the subcategory field values. For one category field value no set needed for the subcategory and no action disable any fields. One category field value and not value for the subcategory needed, control the display and mandate of the subcategory field. Another category field value does not need the subcategory value and controls the mandate and visible value of subcategory field.

example

      1. Category x no subcategory value needed therefore disable the visibility and mandate of the subcategory field.       works fine

      2. Category y no subcategory value needed therefore disable the visibility and mandate of the subcategory field.... two actions disable two fields.

      3. Category z no subcategory value needed therefore disable the visibility and mandate of the subcategory field.... one actions disable one fields.

2 and 3 not work properly sometimes it enables the subcategory which it makes it mandate for a value.What exactly   im doing wrong?

7 REPLIES 7

amis
Kilo Expert

Hi Michael,



As multiple UI policies are triggering on same field, Please check the order of UI policies.


Also you may want to set 'Reverse if False' -- check box to unchecked.



R's


Abhi



PS: Please mark helpful/correct or hit like based on my response


Thanks for the tip...... The uncheck box made it worst.... this is the order



x   = 50 , y = 60 and z = 70


Hi Michael,



As of my understanding


You can try with UI Policies with below conditions with 'reverse if false' as unchecked
The idea is to cover all the impacted fields in the UI Policy Actions.



For example:



UI Policy 1



Condition:
if category = x


UI Policy Actions
Non Mandate & hide subcategory
Make field A & B editable & visible



UI Policy 2


Condition: If category = y


UI Policy Actions
Non Mandate & hide subcategory
Make field A & B read only



UI Policy 3


Condition: If category = z


UI Policy Actions
Non Mandate & hide subcategory
Make field A editable & visible
Make field B read only



UI policy 4


if category = none/other value (not in x, y, z)


UI Policy Actions
mandate subcat and make it visible
Make field A & B editable & Visible



Thanks,


Abhi



PS: Please mark helpful or correct based on my response


Shishir Srivast
Mega Sage

Hi Michael,



Sorry, may be I am wrong but can you please clarify, you want to set the subcategory field invisible and not mandatory based upon the category value = x,y,z?


Do you have 3 category and 1 sub category field OR 1 category and 1 sub category field ? Can you please explain the requirement in detail?