make a field visible and mandatory if other field changes values
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2024 06:08 AM
Hello,
I am trying to make the field "Reject reason" visible and mandatory to fill in in order to change the status.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2024 06:09 AM
I mean: When approver click "reject" button there should be a field "reject reason" show up and mandatory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2024 06:12 AM
Better follow OOTB logic on Reject button
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2024 06:14 AM
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,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2024 06:28 AM
Hello,
yes, I have UI action but not client side.
If i modify it as you suggest it does not work: