Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Change submit button e-mail address from Drop-Down selection

Avatar

Level 2

Hi all!

The form I’m working on has a Drop-Down List that the user must make a selection from.

The selection from the Drop-Down List will determine who the form is e-mailed to when submitted.

The completed form is e-mailed via a Button set to “submit to URL.” Is there a way to change the e-mail distribution list based on the selection from the Drop-Down List?

Any help would be appreciated!


Thanks

3 Replies

Avatar

Former Community Member

Here is a sample that shows the different ways to accomplish this.

Paul

Avatar

Level 2

Paul

The example answered my initial question, but how do you change the subject if it also needs to change based on the drop-down list selection?

Thanks!

Kurt

Avatar

Former Community Member

The example shows how to access the mailto URL....you can add pr remove whatever you want. If you do a web serach for mailto

it will show you the construction of the URL ...you simply have to make the corresponding string in your command.

Hope that helps

Paul