UI Policy Not working to make field as mandatory

Kanna12
Tera Expert

I am trying to make one flag as amandatory in workflow.I made chnages in ui policy and marked as true.

In UI it showing black astrix beside flag field (not red colored) and system allowing to submit the form with out slecting flag field.

 

Please suggest me.

Gayam_0-1709569881696.png

 

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Kanna12 

 

It means it is picking up default value, which satisfying the UI policy. 

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

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

Sohail Khilji
Kilo Patron
Kilo Patron

Please share the UI policy screenshot !


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

 

When you make a flag mandatory you are basically not giving an option to proceed without accepting it. So unless that is your case I would suggest creating a drop down field with yes / no choices with none, defaulted to none. And when this is mandatory user is forced to select and say yes or no.

 

You mandatory flag is not working as it is false at the moment, which is a value. So it sees it as populated, you need to check on submit that if it is not true then do something.

-Anurag