Forum Discussion
JavaScript ?: Can I pull text from a text box into an email?
var player = GetPlayer();
var useremail=player.GetVar("email");
var subject="VAE Engagement sur l' utilisation de velos a assistance Electrique";
var usernotes=player.GetVar("Note");
var exercisenotes1=player.GetVar("Note1");
var exercisenotes2=player.GetVar("Note2");
var exercisenotes3=player.GetVar("Note3");
var mailto_link='mailto:'+useremail+'?subject='+subject+'&body='+"Activity Notes - My thoughts on the Non-Discrimination policy:%0d%0A"+exercisenotes1+"%0d%0A%0d%0AActivity Notes - Situations I would report to the Values Line:%0d%0A"+exercisenotes2+"%0d%0A%0d%0AActivity Notes - Examples of Conflict of Interest situations:%0d%0A"+exercisenotes3+"%0d%0A%0d%0AGeneral Notes:%0d%0A"+usernotes;
win=window.open(mailto_link,'emailWin');
may be if you replace by player.GetVar("question1");
you will have the response tell me if it work