Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Need some clarification about UI policy actions once a filed is made mandatory.

Aditya Sinha
Tera Contributor

CASE- Hi . I am creating a form where a field with 3 radio buttons (High, mid, low) 'C' 's behaviour is being determined by the value of a dropdown field A. 

A can take values -1,2,3,4. When A takes 1 or 2 , C becomes hidden and when A takes 3 or 4 C becomes mandatory with no default radio button being selected. 

I have created 2 UI policies to achieve the desired behaviour for C(one hidden ,one for mandatory). 

 

ISSUE- When Cis taking 1/2 it gets hidden and then on taking 3/4 it becomes mandatory with no default choice being selected. However, when C becomes mandatory by selecting 3/4 first,on choosing 1/2 after that it stays mandatory and does not become hidden as expected. 

How do I solve this issue?

 

 

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Aditya Sinha 

 

Did you try with Reverse false and i think you can try in  1 UI policy only. 

*************************************************************************************************************
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]

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

Hi @Dr Atul G- LNG  I did try reverse if false in both the policies but it did not work.

 

Please share the snippet of both policies. 

*************************************************************************************************************
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]

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