make a field visible and mandatory if other field changes values

hadron_collider
Tera Contributor

Hello,

 

 

I am trying to make the field "Reject reason" visible and mandatory to fill in in order to change the status.

 

kata90_0-1704463611188.png

 

 

 

23 REPLIES 23

hadron_collider
Tera Contributor

I mean: When approver click "reject" button there should be a field "reject reason" show up and mandatory

Better follow OOTB logic on Reject button

 

LearnNGrowAtul_0-1704463932914.png

 

 

Keep teh field visible and put condition.

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

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

@hadron_collider ,

 

is the UI action "reject" client side?

You will need to make it client side, using the client checkbox, and in the script section use the 

g_form.setDisplay('reject_reason', true); and g_form.setMandatory('reject_reason', true);

mark helpful if this helped.

 

Thanks,

Hello,

 

yes, I have UI action but not client side.

If i modify it as you suggest it does not work:

kata90_0-1704464885152.png