Hide a field in RITM based of the selection in catalog view

karlab
Tera Contributor

Hello,

 

I have selected in catalog view "No" and submitted and it did not auto populate the 'ID' field, which is correct because I did not select 'Yes' but on RITM it shows 'ID' field as mandatory. I'll attach a picture of my script and UI policy action as well, not sure what's causing this since I don't have anything mandatory for ID 

 

karlab_0-1722348217540.png

karlab_1-1722348358605.pngkarlab_2-1722348395210.png

9 REPLIES 9

Brian Lancaster
Tera Sage

Do you have mandatory set to true on the variable itself? 

karlab_0-1722351594380.png

No I do not, only visible is set to true. It's weird, because I've deleted and added the field, renamed it as well and nothing changes on the RITM form

That is your UI Policy. I'm talking the variable itself. I you open the variable and you see the mandatory filed check that is causing the problem. You cannot hide a mandatory field. Example screenshot below.

BrianLancaster_0-1722351997208.png

 

karlab_0-1722352678172.png

It is not set to mandatory