Question: How to email result slide
I am working on a project that allows people to complete a self-assessment and then email the results to their managers. The result slide consists of a table and multiple check marks (images).
I tried using the following JS from another discussion thread - but nothing gets attached.
var player = GetPlayer();
var email = player.GetVar("ManagerEmail");
var name = player.GetVar("name");
var texto = player.GetVar("Commitment") + "\n";
var subject = "My Competency 180 Self-Assessment";
var body_start = "Dear Manager,\n" + name + " has sent you his/her Competency 180 Self-Assessment:\n";
var body_end = "Please discuss this self-assessment with " + name + "\n";
var mailto_link = 'mailto:' + email + '?subject=' + subject + '&body=' + encodeURIComponent(body_start + texto + body_end);
win = window.open(mailto_link, 'emailWin');
I assume I am missing something. I am not very good with JS, so I am not too sure what the var texto is for. I assume this is a key piece that I am missing. This script is specific to the thread from which I took the JS, so I am not too sure how to edit for my project.
Any help would be greatly appreciated.