Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

Change order of events

Avatar

Level 2

Hi,

I have a form with a submit button which attachtes the form in PDF to email, however I want the submit button to hide itself and then attach to an email.  Currently the button hides on the filled form but the one that gets attachted to the email still has the submit button.  The form was made in live cycle.

Any help would be great!

Cheers.

2 Replies

Avatar

Level 10

Hi,

You should be able to use a regular button to hide all the buttons, make fields readonly, etc and once it has done that you it can call the email button (which you will have to set to hidden).

There is an example here that uses this technique for performing complex validation but it is the same approach, http://forms.stefcameron.com/2006/08/24/complex-validations/

Good luck

Bruce

Avatar

Level 7

Hi,

You haven't explained how you currently hide the button. The way I would handle it is to use the preSubmit event with the following script on the button.

this.presence = "hidden";      //javascript

or

$.presence = "hidden"       //formCalc

Good luck!

Stephen