Make a True/False field required
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-23-2023 12:51 PM
Is there a way to required a true/false field to be true in order to close a record?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-23-2023 01:28 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-23-2023 01:51 PM - edited ‎01-23-2023 01:51 PM
You are right.
So you need an OnSubmit Client script as below
function onSubmit() {
//Type appropriate comment here, and begin script below
if (g_form.getValue('u_survey_sent') == 'false' || g_form.getValue('u_survey_sent') == false) {
alert('<alert message>');
return false;
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-23-2023 02:00 PM
This is getting really close. I only need to message to display is they are trying to change the state to closed. I would still like them to be able to update the record in other ways
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2023 05:20 AM
Please add the appropriate Field name and closed state value
function onSubmit() {
//Type appropriate comment here, and begin script below
if(g_form.getValue('<state field name>') == '<Value of Closed State>')
{
if (g_form.getValue('u_survey_sent') == 'false' || g_form.getValue('u_survey_sent') == false) {
alert('<alert message>');
return false;
}
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-23-2023 01:07 PM
You can use an OnSubmit client script to verify that the value is true.