Answered
If/and(?) for check boxes
How do I write a JavaScript for the following please:
If PurchaseCheckBox AND Service1 are checked, automatically check ServiceCover
So if Service is checked on it's own, ServiceCover stays unchecked.
Thank you!
How do I write a JavaScript for the following please:
If PurchaseCheckBox AND Service1 are checked, automatically check ServiceCover
So if Service is checked on it's own, ServiceCover stays unchecked.
Thank you!
Put this script in both "PurchaseCheckBox" and "Service1" fields as 'Mouse UP' action (Run a JavaScript):
var pcb = this.getField("PurchaseCheckBox").valueAsString;
var s1 = this.getField("Service1").valueAsString;
var SC = this.getField("ServiceCover");
SC.checkThisBox(0,(pcb!=="Off"&&s1!=="Off") ? true : false);Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.