These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

hide and show fields sending email

nawaha
Registered: Jul 30 2011
Posts: 11

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

My Product Information:
Acrobat Pro 10.0, Macintosh
KellyMcC
Acrobat 9ExpertTeam
Registered: Jul 11 2011
Posts: 389
Have you tried using display.hidden?

Kelly McCathran
Adobe Community Expert
Certified Technical Trainer+