Hi Xerte community,
I hope you are well.
I would like to include the ability for the user to print a certificate on the final page of the Xerte. I have a quiz with multiple MCQ questions followed by a Results page. After the Results page (which I know is usually the last page in the Xerte) I have two Plain Text pages, because I have set up a variable whereby the user can enter their name in to a text field and click on submit button, and then the last page is using Text > Plain Text page, displays the certificate which has the users name displayed on the screen and a print button, because I have added the print code to that page.
<button onclick="myFunction()">Print this page</button>
<script>
function myFunction() {
window.print();
}
</script>
The good news is that this works with Public Xerte or Deployment export.
When the Xerte is Public or exported as Deployment the print button displays and it all works fine. That means that linking from the VLE to Xerte on the server directly works fine, or having the Deployment zip file in content collection of the VLE and then adding a link on the site to link to content collection, works fine.
SCORM
But when I export as SCORM zip file and upload to VLE I do not see the print button. See screenshots. Variables and Results etc all work fine but not print.
Does anyone know the reason why the SCORM in the VLE does not display the print button on the Xerte screen? Is it SCORM or the VLE that's the problem?
I look forward to hearing from you. Best wishes
Anne