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

Remove SUBMIT button from form after emailing?

stephanied
Registered: Feb 25 2008
Posts: 7

I created a form with fillable fields and added the submit button so users can complete and then email the form:

After emailing the form, the Submit button still appears as text o a pic on the submitted form.

How do I set the the submit button to appear on the form itself when the user is completeing it, but NOT show after they email the completed form to me?

Thx

My Product Information:
Acrobat Pro 8.1.2, Windows
cfinley
Registered: Jan 9 2008
Posts: 70
in the object tab, change the presence setting from "visible" to "visible (screen only)"

I know this works for printing, never used electronically submitted forms though... try it out
stephanied
Registered: Feb 25 2008
Posts: 7
looks like that doesn't worrk - thanks for the idea though.
cfinley
Registered: Jan 9 2008
Posts: 70
how about with a click event on the submit button, presence changes from visible to invisible?
kam-erg1987
Registered: Oct 26 2009
Posts: 1
I need to "remove" the submit button on the distributed form. How can I do this?
thanks
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Well, this if generally not possible, because the send form contains everything of the original form.
But with some tricky scripting you can control the visiblilty of the mail button in the mailed form.

I made an example form.
[url]https://share.acrobat.com/adc/document.do?docid=420579ab-5d38-44c3-9622-d127bc39a91b[/ULR]

This form contains two buttons.
One real mail button that is hidden and a fake mail button that is visible.
With a timeout scripting, you can control the visibility of the button and trigger the mailing script delayed.

// Make this fake mail button invisiblethis.presence = "invisible"; // Wait 500 milliseconds before triggering the real mail button click event to open the mail application. // The attached PDF will include only an invisble button.app.setTimeOut('xfa.form.resolveNode("form1.#subform.Mail").execEvent("click");', 500); // Wait 5000 more milliseconds before you make the fake mail button visible again, // so you're able to send the form again if mailing fails for some reason.app.setTimeOut('xfa.form.resolveNode("form1.#subform.FakeMail").presence = "visible";', 5000);

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs