Make field mandatory based on true/false field update
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2022 01:54 AM
Hi all,
I was trying to make a field mandatory, when a true/false field is updated on a sys_user form. I tried UI policy but it dint work the way I wanted.
This is the scenario, when someone enables/disables coreHR, Change log should be made mandatory. Can anyone help me achieve this?
Thanks
Rini
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2022 02:08 AM
Hi,
what have you started with and where are you stuck?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2022 02:38 AM
Hi Ankur,
When somebody updates the Enable coreHr field, 'Change Log' field should be made mandatory. As the 'Enable CoreHR' is a true/false field, not sure how to achieve this. Below is the client script in place but it doesnt work....Change log field is mandatory during onload.
I have also tried UI policy but no luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2022 03:30 AM
Hi,
you cannot make form section as mandatory.
the fields present in that form section needs to be set as mandatory one by one whichever you require.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2022 07:54 AM
Hi Ankur,
Sorry I dint get you.
Is it not possible to make that field (Change Log) mandatory or is there any other way possible.
Rini
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2022 09:07 PM
Hi,
the screenshot you shared has it as Form section and not field
So fields under that section you can make mandatory
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader