Copy link to clipboard
Copied
You can add the line below to your original script or as an additional Mouse-Up event in the same button field like:
var f = this.getField("Checkbox1");
var check = (f.isBoxChecked(0)) ? this.mailDoc({cTo: "justMe@mailMe.com"}) : app.alert("Please see Disclaimer at the bottom of this page and check the box to confirm that you understand the required approvals prior to submitting this request");
Copy link to clipboard
Copied
You can add the line below to your original script or as an additional Mouse-Up event in the same button field like:
var f = this.getField("Checkbox1");
var check = (f.isBoxChecked(0)) ? this.mailDoc({cTo: "justMe@mailMe.com"}) : app.alert("Please see Disclaimer at the bottom of this page and check the box to confirm that you understand the required approvals prior to submitting this request");
Copy link to clipboard
Copied
It doesn't look like JavaScript…
$('#submit').prop("disabled", true);
$('input:Checkbox1').click(function() {
if ($(this).is(':checked')) {
$('#submit').prop("disabled", false);
} else {
if ($('.checks').filter(':checked').length < 1){
$('#submit').attr('disabled',true);}
}
});
Copy link to clipboard
Copied
Thank you for catching that JR.
I should've clarified to delete that script and use the example Mouse-up event above.