Catalog Client Script - Do Not Allow Submission
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
The script should not allow submission if either values choice is 'yes'
function onSubmit() {
var group = g_form.getValue('was_the_group_listed');
var file = g_form.getValue('was_the_file_listed');
if (group == 'yes' || file == 'yes') {
g_form.addErrorMessage('Please check KBXXX');
return false;
}
}
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hello @JA26
Just update both 'yes' to 'Yes' and your code should work as expected.
Hope that helps!
