Forum Discussion
AliciaSummers
13 years agoCommunity Member
Send results slide via email using Javascript ??
Hello! I'm pretty new to... well... all of this, but I'm a fast learner. I've been toying around with adding Javascript to my Storyline project for some advanced capabilities, and so far I've fig...
AnaVictória
13 years agoCommunity Member
Hello,
I need something similar but the email has to have a little more text. I have the following text variables:
- Commitment
- Name
- ManagerEmail
I edited the above jc to nomething like this:
var player = GetPlayer();
var email=player.GetVar("ManagerEmail");
var nome=player.GetVar("Name");
var texto=player.GetVar("Commitment");
var subject="My Corporate Responsibility Commitment";
var body_start="Dear Manager, "+nome+" has sent you his/her Corporate Responsibility Commitment:";
var body_end="Please discuss this commitment with "+nome;
var mailto_link='mailto:'+email+'?subject='+subject+'&body='+body_start +texto +body_end;
win=window.open(mailto_link,'emailWin');
Will it work? is it possible to have in the '&body' ?
Thanks !!