Need help to check and uncheck - checkbox to trigger email
Need some assistance as soon as possible please to understand exactly where I am going wrong and also some help to correct this. I am creating a form for document checklist within our department, each field is a checkpoint and has a textfield with suggestions of what they need to complete before it can progress, next to this is checkbox and once complete they check this off. the following belows works for me and it attachs well however I cannot figure out the following, how to add text fields into the subject line and have also include text, CC emails from a text field in the script and for some reason when I uncheck the box its also bringing the email up and attaching document.
Anyone with great knowledge on this would be greatly appreciated, and yes I did a crash course on this to learn and not every term or script I fully understand
if (this.getField("Check Box Copyright 1st Check").valueAsString=="Yes") app.alert("if copyright checks at this stage is completed,continue to email.",3);
this.mailDoc({cTo: "WACEdocuments@scsa.wa.edu.au;manumalo.natasha87@gmail.com", cSubject: "COPYRIGHT 1st Check, <COURSE>,<YEAR>,<COURSE TYPE>,<DOCUMENT TYPE>,COMPLETE", cMsg: "Please see attached for your review, all copyright check have been completed CM notes updated."});
