UI Policy Issues on custom table

rmaroti
Tera Contributor

I have created 5 custom field and it id default visible and mandatory on Certification Program Custom table.

1. I have created 1st UI policy when are have add condition state= Non OR state= New then all above 5 field should be hide on onload form and is working as we accepted and order =100 set it.

2.then I have created 2nd UI Policy inn which I have add condition state =In Progress in that case only "Reason of n Progress" field is visible which set default and make it remaining 4 field visible =False and give the order =200 and onLoad=false because I just want run on only onChange not on onLoad.

 

Issue is when create 2nd UI policy both are not working what will be the reason?

2 REPLIES 2

Brad Bowman
Kilo Patron
Kilo Patron

In your screenshot/test are you changing the value of State to In Progress or was this value already set when the form loaded?  In the second UI Policy actions for the 4 fields, have you set mandatory to false as well as visible to false?  Fields cannot be hidden when they are mandatory.

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @rmaroti 

 

UI policy works when a condition met. Like in your case State = In Progress. 

 

You cant hide the fields if it is mandatory or visible true. 

 

If you share 2nd policy screen shot m better to support you.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************