Expand my Community achievements bar.

Post Submit Event Question

Avatar

Former Community Member
How can I place a post-submit event into my form. I have Adobe Livecycle Designer 8.0. It doesn't show this event in the Script Editor.



I want to close the form after it has been submitted. I have a script for this action, but I do not know where to put it. I am using



app.execMenuItem("close");



I have tried placing this item in the Pre-Save Event and it works fine if you manually send the form via email. However, I receive an error from the Adobe 8 Distribution Wizard, when I try to send the Form to my Distribution List.



Does anyone know what I am doing wrong?



Thanks,



Jen
1 Reply

Avatar

Former Community Member
The post Submit event was not exposed in version 8 that is why is does not appear. You could hide your actual submit (make it invisible), then put a regular button on the form that will be the users submit. On the click event you would hit the submit button then run your close code. So it would be something like this:



RealSubmitButtonName.execEvent("click");

app.execMenuItem("close");