Email quiz results variables in body of an email with JavaScript in Captivate 9
This Javascript example works in Captivate 9 to send quiz data to a url: JavaScript Solution: Launch a URL with Captivate Variables as Parameters - CaptivateDev.com (I've already successfully modified this one to include all quiz results variables)
While this JavaScript example works in Captivate 9 to open our default email (Outlook) and populate the address line, subject line, and body with text but without any quiz results data: Email via Javascript button - Articulate Storyline Discussions - E-Learning Heroes
Now, what everyone actually wants to do with Captivate 9 is to send Captivate 9 quiz results in an html 5 environment via email; however, incredibly Captivate 9 still cannot do this.
However, Articulate with this JavaScript example can apparently do so just fine here: http://matthewbibby.com/email/#filesyoumightneed
Now the following question is for anyone proficient enough in JavaScript in a Captivate 9 context to answer my question:
These are my Captivate quiz results variables:
$$cpQuizInfoTotalProjectPoints$$
$$cpQuizInfoTotalProjectPoints$$
$$cpQuizInfoTotalCorrectAnswers$$
$$cpQuizInfoTotalQuestionsPerProject$$
$$cpQuizInfoQuizPassPercent$$%
$$cpInfoPercentage$$%
$$cpQuizInfoAttempts$$
Now for my questions:
1) Even though the some of the above working JavaScript is intended for Articulate I presume it would also work in Captivate 9, yes?
2)Assuming yes, if I wanted to publish one or more of the above Captivate quiz results variables into the body of a email to be sent to a third party, how would the could we combine the aforementioned JavaScript examples, into a final JavaScript version, that would insert one or more of the above variables coded into the body of the mail along with their text descriptors, so that we get something like the below in the body of an mail?
You-Scored: $$cpQuizInfoTotalProjectPoints$$
Maximum-Score: $$cpQuizInfoTotalProjectPoints$$
Correct-Questions: $$cpQuizInfoTotalCorrectAnswers$$
Total Questions: $$cpQuizInfoTotalQuestionsPerProject$$
Percentage-to-Pass: $$cpQuizInfoQuizPassPercent$$%
Percentage-Scored: $$cpInfoPercentage$$%
Attempts: $$cpQuizInfoAttempts$$
Obviously, in the final output the score values would be visible in lieu of the $$variables$$.
Hope this works, or the alternative may be to switch to Articulate since this company does not want an LMS and is hesitant to use Quiz Analyzer.
