- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2019 11:07 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2019 01:33 AM
ok i got it.
it's true/false type field , it always contains a true or false value so it will always be considered to be filled that's why its showing you as grayed astric mark
for reference. you can inspect on that field and check the value , you will see it has "false" value .
solution is , you can either create here custom field with the choice value "yes" or "no".
Cab Required - yes
No

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2019 12:13 AM
function onSubmit() {
.
.
.
if (g_form.getValue('cab_required') === 'true') {
g_form.addErrorMessage('Unable to close the Change request as there are ' + g_form.getLabelOf('cab_required'));
// SetRedBox(cab_required)
}
.
.
.
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2019 12:13 AM
you were missing g_form.getValue('cab_required')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2019 12:16 AM
Thank you. I added it before.
var cab_required = g_form.getValue('cab_required');
I just cut some code for request your suggestion about
SetRedBox(cab_required)
It may be look like
g_form.setRedBox('cab_required');

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2019 12:20 AM
it's working at my end.
how are you exactly testing it.
the code will work , if you checked the check box and try to submit the form then it will show the error message on form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2019 12:23 AM