i need to hide and show buttons sending an email
what i did is update the javascript in my button but what happen is that it answer to the first part of command.
i tried even to do "add a javacript" 3 times in the button but it doesn't work.
these are the lines i wrote can anyone help on this?
first time i clicked add a javascript
getField("print").display = display.noprint;
getField("send").display = display.noprint;
getField("bin").display = display.noprint;
getField("Text4").display = display.visible;
then i clicked again add a javascript
this.mailDoc({
cTo: this.getField("refer").value,
cCc: this.getField("mail").value,
cSubject: "Quotation request from: " + this.getField("company").value,
cMsg: "save this e-mail for your records"
});
then the third time
getField("print").display = display.noprint;
getField("send").display = display.noprint;
getField("bin").display = display.noprint;
getField("Text4").display = display.noView;
it gives the result to send the email and the first instruction for the button but not the last.
what do you think about?
regards Ray
Kelly McCathran
Adobe Community Expert
Certified Technical Trainer+