Make field mandatory based on true/false field update

rin1
Kilo Guru

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?

find_real_file.png

 

Thanks

Rini

11 REPLIES 11

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

what have you started with and where are you stuck?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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.

find_real_file.png

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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

Hi,

the screenshot you shared has it as Form section and not field

So fields under that section you can make mandatory

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader