AnsweredAssumed Answered

how to instruct a form to continue its submitting process

Question asked by MohamedAlKenani Employee on Oct 29, 2016
Latest reply on Oct 31, 2016 by Louis_van_Amelsfort

Hello,

We have a requirement to add 3 check-boxes in a form & before the form being submitted at least one of them should be checked by the requester & if not a alert will popup for him.

 

We were thinking about the below code but we missed the part to instruct the form to proceed if the condition is true:

var a = ca_fdIsSelectedCheckBox('form1','check1');
var b = ca_fdIsSelectedCheckBox('form1','check2');
var c = ca_fdIsSelectedCheckBox('form1','check3');
if(a || b || c){
CODE TO SUBMIT THE FORM
} else {alert("please choose at least one");}

Regards,
Mohamed...


Outcomes