UI Policy to hide/Show Checkbox

travuswarren
Giga Contributor

Hello all,

Has anyone had any issues creating a UI Policy to hide/show a checkBox field for a service catalog item?   I will document   my UI Policy below.

Condition:

test_selectbox = new   or

test_selectbox = old

Catalog UI Policy Actions

test_checkbox: Mandatory: Leave alone Read-Only:Leave alone Visible: True

test_reference field: Mandatory: True Read-Only:True Visible: True

When the test_selectbox condition matches, the test_reference field is visible but the test_checkBox remains not visible.

What is weird is that the UI policy works correctly when I created an additional test checkBox and removed both order values.   This creates both checkBoxs on the top of the form which is not intended and only used for testing.

find_real_file.png

Thanks again

1 ACCEPTED SOLUTION

Hi William,



I actually was able to get my issue fixed with some assistance.   I had to wrap my checkbox with two containers(container start & container end).   Try to wrap your checkboxes in additional containers.   Hopefully this helps.


View solution in original post

27 REPLIES 27

Hi Srinivas,



Sorry, that read only field should be leave alone.



Thanks


Hi Travis,



Do you have Reverse if else enabled in this UI Policy?



A screenshot of the Policy would help



Thanks


Srini


Hi Srinivas,



Yes.


howellm
Kilo Expert

I am having an issue when creating a brand new order guide, created a very simple UI policy and it prevents checkbox from showing at all. The text box shows and hides and designed though.



Marshall


will_smith
Mega Guru

I am also experiencing a similar issue in the Geneva release - but it works in Fuji. We have entire sections that are hidden based off UI policy. When the UI policy conditions are met, everything shows up... except for the checkboxes. This occurs on all catalog items that have a UI policy to hide fields conditionally.



Please let me know if you find a fix for this.