Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
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.
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).
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.