Forum Discussion
User notes that they can print and email
It looks like some of your quotes are not closed. And there is a mix of different quote types: ',",and “
I am not sure if it is the formating of the post... but typicly you shouldn't break strings into multiple lines. If you do you will need to add a slash (\) at the end of each line.
This might work (untested but formatted better). Note that I just made the mail_to_link all one line and replaced the various quotes.
var player = GetPlayer();
var useremail=player.GetVar("email");
var subject="Trois type de reportage journalistic";
var quoi1=player.GetVar("TextEntry283");
var qui1=player.GetVar("TextEntry268");
var quand1=player.GetVar("Textentry270");
var mailto_link="mailto:"+useremail+"?subject="+subject+"&body=Notes Description de faits - Quoi:%0d%0A"+quoi1+"%0d%0A%0d%0A Notes Description de faits - Qui:%0d%0A"+qui1+"%0d%0A%0d%0A Notes Description de faits - Quand:%0d%0A"+quand1+"%0d%0A%0d%0A"
win=window.open(mailto_link,"emailWin");
- BrianSellors-4a9 years agoCommunity Member
Hey James thank you so much for your response. I ended up using the following code and it seemed to work (I will also test the one you re-formatted for me thanks you for taking the time to do that [😊] ):
var player = GetPlayer();
var useremail=player.GetVar("TextEntry293");
var subject="Trois type de reportage journalistique";
var usernotes=player.GetVar("notes");
var exercisenotes1=player.GetVar("TextEntry283");
var exercisenotes2=player.GetVar("TextEntry268");
var exercisenotes3=player.GetVar("TextEntry270");
var exercisenotes4=player.GetVar("TextEntry271");
var exercisenotes5=player.GetVar("TextEntry272");var mailto
Related Content
- 9 months ago
- 7 months ago
- 8 months ago
- 9 months ago
- 12 months ago