Forum Discussion

IanConnor-9f7dc's avatar
IanConnor-9f7dc
Community Member
7 months ago

Ability to edit format of report.html quiz output

Ability to apply basic edits to the output of the report.html file would really enhance the experience of users taking a quiz.  Our users need a quick and easy way to save the results of the quiz they have just taken (not just the score but the actual options they have chosen).  Allowing them to print their results opens a very basic tabular report as an html document but the only things you can change are whether or not a score is reported (not relevant for us). It also uses the header 'Student response' ... our users are not called 'students'!    I would also like the report to be able to include an button on screen to print straight to a PDF (rather than rely on the browser's own print settings why not allow us to place it on screen?)  

  • skuda's avatar
    skuda
    Community Member

    Hello! I can help with a couple of these items. 

    To change the "Student response" heading, in the base report.html file, you'll find a section that looks like this and you can change the "student answer" display to "Respondent Answer" (as shown below) or whatever reference you prefer. 

        dateTime: 'Date / Time',
        question: 'Statement',
        correctAnswer: 'Correct Answer',
        quizResult: 'Result',
        studentAnswer: 'Respondent Answer',
        pointsAwarded: 'Points Awarded',
        neutral: 'Neutral',
        correct: 'Correct',
        incorrect: 'Incorrect'

    For the button ... in this thread, How to Create Certificates by Customizing the Report.html File you'll find a downloadable link at the bottom which gives you a modified report.html file that creates a certificate. Within that code, you'll see code for a print button. There are two parts of that code that you'll need: a print bar section at the top of the report.html file and <!Print Button> section at the bottom of the report.html file. I've attached my report.html as a text file with these mods for your reference.

    I hope this helps!

    Sylvia