Make a True/False field required

Ruth Goodsell1
Tera Contributor

Is there a way to required a true/false field to be true in order to close a record?

16 REPLIES 16

Pavankumar_1
Mega Patron

Hi @Ruth Goodsell1 ,

You can achieve it with the client script or business rule.

if you need to make Close Out Survey Sent field the before closing you can create before business rule and give the conditions and message as per requirement. 

1. Give conditions as per your business need.

Screenshot (609).png

2. Check abort action on Actions section and give the message.

Screenshot (610).png

3. Result: It will show message like below when you tried to update without checking Close Out Survey Sent field.

Screenshot (611).png

If it helps please click Accept as Solution/hit the Thumb Icon.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar

This is the best solution so far, but the abort action does not work.  The record is still closing. 

Hi @Ruth Goodsell1 ,

Make sure your conditions are set properly. When your conditions are met then only abort will work.

If it helps please click Accept as Solution/hit the Thumb Icon.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar

Theo BOULANGER
Giga Guru

Hi @Ruth Goodsell1 , you can try to put a default value to "true" on field dictionnary OR creat a BR before insert where you change the checkbox to true.

 

Regards,

Afrith Shariff
Tera Guru

You can use an OnSubmit client script to verify that the value is true.