Forum Discussion
How to send quiz results via mail automatically via Javascript
Hi Meera Lyn,
Your issue is very similar to mine. Did you ever figure out how to send the results via email?
Thanks kindly,
- MeeraLynn4 years agoCommunity Member
Hi Rhonda
Articulate Support recommended that the company has the course hosted on their LMS (Learning Management System) - LMS will send out notifications like this, and therefore, Articulate does not need to have this functionality (shame really).
As a workaround, what we did is to have a Print button on the Results slide. When the user clicks Print, it loads the final A4 portrait slide which has Javascript containing: the course title + the date of the course + the score the user got (you could also set up a user name parameter at the beginning of your course to get the user to enter their name before they start the course - this name field can then also be entered on the afore-mentioned final slide that contains their score).
When the user clicks the Print button on the Results slide, Javascript launches the print dialogue screen allowing the User to print this A4 portrait slide for their record, or if they wish to save it in their local drive they can simply amend the "Destination" drop-down to PDF format and save it that way.
Our print button Javascript is:
var styles = `@media print {
body, * { visibility: hidden; }
html, body { overflow: hidden; transform: translateZ(0); }
#slide {
transform: scale(1.1) !important;
}
#wrapper {
transform: scale(1) !important;
}
#slide,#wrapper {
width: 100% !important;
height: 100% !important;
overflow: visible !important;
}
#frame {
overflow: visible !important;
}
.slide-transition-container {
overflow: visible !important;
}
@page {size: A4 portrait;max-height:99%; max-width:99%}
.slide-container, .slide-container * {
visibility: visible !important;
margin-top: 0px !important;
margin-left: 0px !important;
}
#outline-panel {
display: none !important;
}
}
}`
var stylesheet = document.createElement('style');
stylesheet.type = 'text/css';
stylesheet.innerText = styles;
document.head.appendChild(stylesheet);
window.print();Best wishes.
- RhondaBear4 years agoCommunity Member
Thank you so much for sharing! What a great Articulate community! Very
much appreciated!I will try that out for sure :)
Best regards,
Rhonda
- MeeraLynn4 years agoCommunity Member
Rhonda Bear
Thank you so much for sharing! What a great Articulate community! Very
much appreciated!I will try that out for sure :)
Best regards,
Rhonda
I hope my suggestion helps you Rhonda.
Like you, I also strived for a while, to find the emailed solution but this was not supported by Articulate.