- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2024 01:03 AM - edited 04-23-2024 01:06 AM
Hi
I have one requirement.
There is a Section on a form which has 4 true/false field.
The requirement is that user cannot submit the form until one field is true from that section.
Please don't suggest onSubmit Client script because due to some reasons we're bounded to use this.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2024 01:11 AM
Hello,
Try Before Insert BR.
if(current.checkbox1 == 'false' && current.checkbox2 == 'false' && current.checkbox3 == 'false' && current.checkbox4 == 'false'){
gs.addErrorMessage("You cannot insert the task. Need 1 checkbox to be true");
current.setAbortAction(true);
}
If my answer helps you in any way please mark it as correct or helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2024 01:11 AM
Hello,
Try Before Insert BR.
if(current.checkbox1 == 'false' && current.checkbox2 == 'false' && current.checkbox3 == 'false' && current.checkbox4 == 'false'){
gs.addErrorMessage("You cannot insert the task. Need 1 checkbox to be true");
current.setAbortAction(true);
}
If my answer helps you in any way please mark it as correct or helpful.