juerg_walther:
Hi Khan,
Are you able to share your solution (workaround) - I think this will be interessting for the community!
Thanks in advance
Jürg
i have two fields one with Choice "Form.choice"(approve/reject/More Info) and one with Members"Form.Member" (list of users). Task is to make Member field mandatory when choice is Approve.
i created a validate script with an alert and place it at submit
"{
onSubmitValidate : function (obj) {
var selectedValue = ca_pam_getSelectedOptionValues(obj);
var memberValue = ca_pam_getSelectedOptionValues('Form.Member');
if(selectedValue == 'Approved' && memberValue == ''){
alert('Please select Implementer');
return false;
}
}
}"
and in form on submit i added
"ca_fd.js.onSubmitValidate('Form.choice')"
now as defined when condition is approve it gives popup on submit to select implementer, and when condition is false it finish without any popup.
remember to make "required=false" on field Form.Member.