If No is selected from Yes/No variable, i want the submission to get cancelled
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2017 12:31 AM
If No is selected from Yes/No variable, i want the submission to get cancelled
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2017 10:18 AM
Hi Rachael,
Is you variable named 'acknowledge' is a checkbox type? If so, please try the below one and please let me know.
function onSubmit() {
if (g_form.getValue('acknowledge') == 'false') //Checks if the Acknowledge variable is not checked
{
alert("You must agree to the acknowledgement");
return false;
}
}
I hope this helps.Please mark correct/helpful based on impact
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2017 11:23 AM
That did the trick on the checkbox. Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2017 12:40 AM
Hi,
You need to write business rules on insert.
and put check if No is selected status should be "Cancelled"