There are no error messages in the console when the disclosed statement is in the page open event.
The script stops when the "Request for Tender form" is brought to the front, the email is not generated.
I tried moving the disclosed statement from page open event to a document level script, but when this was called from the button there was a console error "not allowed due to security restrictions".
Is there something I have not done right? I have not had much experience with document level scripting.
Document Level Script
function Disclose() {
this.disclosed = true;
}
Called from the button
Disclose();
Appreciate the help you are giving me thank you.