Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Dynamically change send-to address of EmailSubmitButton

Avatar

Level 2

I'm modifying an access request form that we use. Depending on whether the request is for new access (for a new user) or a change to existing access, there may be more than one person who needs to receive the form. I need to know how to modify the EmailAddress property of the EmailSubmitButton in response to a selection from a RadioButton list. I'm not having much luck finding an object model or other resource I can use to examine and change the appropriate properties in JavaScript.

I'm hoping this is something that's been done alot and has some basic scripts already set up.

0 Replies

Avatar

Level 10

The email submit button was put in as a convenience to allow for people to simply drop and use a button for email. It was not intended to be adjusted or controlled programatically. In your case you can use a plain button and program it to use the Acrobat javascrip Maildoc api or youo can drop a button on the form, make it of type submit and use the mailto protocol to control the mail message.

Make sense?

Paul