- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2023 11:08 PM
Hi All,
Can someone please help me on the below query.
In the options checkbox i don't want to be mandatory, but when checkbox is false need to thrown an error message to select the checkbox.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2023 12:21 AM
Hi @nikhitha24 ,
Plz update ur script with below script
function onSubmit() {
var application = g_form.getValue('application_services_stopped');
if (application == 'false' || application == false ) {
g_form.addErrorMessage('Confirmation required: I confirm that application services hosted on these server(s) have been stopped and disabled/removed, and the server is powered on.');
return false;
}else{
return true;
}
}
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2023 11:45 PM
Hi @nikhitha24,
Try to update your scripts as sample scripts below and let me know.
Sample script:
function onSubmit() {
var check_box1 = g_form.getValue('check_box1');
var check_box2 = g_form.getValue('check_box2');
if (check_box1 != 'true' || check_box2 != 'true') {
g_form.addErrorMessage('Confirmation required: I confirm that application services hosted on these server(s) have been stopped and disabled/removed, and the server is powered on.');
return false;
}
}
If my response helps you resolve your issue. Kindly mark it as helpful & correct. It will be helpful to future readers! 👍🏻
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2023 12:21 AM
Hi @nikhitha24 ,
Plz update ur script with below script
function onSubmit() {
var application = g_form.getValue('application_services_stopped');
if (application == 'false' || application == false ) {
g_form.addErrorMessage('Confirmation required: I confirm that application services hosted on these server(s) have been stopped and disabled/removed, and the server is powered on.');
return false;
}else{
return true;
}
}
Thanks,
Danish