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.
i know i'm doing it wrong but i'm totally new to javascript
regards Ray
However, it should still work... Are there any error messages in the JS console?
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com