user
@celeste
Can I have the user enter their email address to have the message sent to?
I want the user to be able to enter their email in storyline to determine where the email is supposed to be sent instead of me entering the email in the code. I assume that means I need to use a variable name but will that work? Or how do I need to change the code?
reply
Reply
user
@support
Yes, you can. What you will do is place a text entry box on the slide. And in the EmailMessage() function in JavaScript you will use player.GetVar() to read the variable with the email address they entered.

There is a tutorial "Use Storyline triggers to email materials to learners" on the Tutorials page that uses this approach. And if it's still not clear, feel free to respond here.
reply
Reply