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

mjocasio23
Tera Expert

Policy 1 order 50


if category field value = X


    HIde and no mandate subcategory field.



policy 2 order 60


if category field value Y


    HIde and no mandate subcategory field.


    hide field A and B



policy 2 order 70


if category field value Z


    HIde and no mandate subcategory field.


    hide field A



Note: subcategory is a dependent of Category. subcategory is mandate


reverse is check and onload too in all policies.



The policies work in load and selected the first time, If I selected one first it works but second wont and third works. if I change the order of selecting a different outcome results.


Hi Michael,



You have to add UI Policy Actions for field A and B on all the above UI Policies.


As they are firing on the same field.



UI Policy 1 -- You have to add


Field A and B


find_real_file.png


Similarly for Policy 3
add Ui APolicy Action for field B


find_real_file.png


Also, create another UI Policy if you have -none- or other category values


UI Policy Actions


mandate subcat and make it visible


Make field A & B editable & Visible



Let me know if it helps



Thanks,


Abhi



PS: Please mark helpful or correct based on my response


mjocasio23
Tera Expert

Thanks for time..... Yes I do have an action for every field that is affected by the policy. The norm is, if the policy does not affect the fields then.... there default values are used.



Policy 1 order 50


if category field value = X


    HIde and no mandate subcategory field.


In this instance, the only action is applied to the subcategory field.


    not mandate and not visible..... checkbox onload and reverse effect value too.



policy 2 order 60


if category field value Y


    HIde and no mandate subcategory field.


    hide field A and B


three actions statement describing the above.



policy 2 order 70


if category field value Z


    HIde and no mandate subcategory field.


    hide field A


two actions statement describing the above.



There are others policies that according to other values of the category field will dynamically populate the subcategory field values and therefore will make visible others fields or not,,,,,, that seems to work fine..... It is in this scenario that I will need to hide or reset to no mandate the subcategory field that does not work correctly. due to the fact the category value selected does not provide a value for the subcategory field and yet some fields will be hidden.