mailto: to a variable

Sep 04, 2013

I was thinking I could create a form directly on the ST page like this:

Data entry for your email = VAR1

Data entry for your subject and topic = VAR 2 and VAR3

Create a button with action:

mailto:%VAR1%?subject=%VAR2%&body=%VAR3%

Done!

But it does not work. :(

Any suggestions on how to make it work?

br

gustaf

4 Replies
Kevin Thorn

Gustaf,

You've got the right approach, just the wrong setup. In the Trigger wizard you have a string of variables int he "File" section. That's why it's not working. "File:" only works as the triggers suggests - Jump To a URL or File.

To do this, set the button trigger to Execute Javacript. Then write a scrip that accepts the variables and sets it up in the mailto: string.

This discussion is closed. You can start a new discussion or contact Articulate Support.