Certificate after finishing questionnaire | XM Community
Solved

Certificate after finishing questionnaire

  • 14 October 2018
  • 21 replies
  • 1338 views

Userlevel 2
Badge +3
Hi all,
I am planning to provide a piece of certificate after my participants finish responding to my questionnaire. Will it be possible to do it using Qualtrics? So they just need to provide their name in the end and download the certificate with their name.
Thank you,
Best regards,
Sherly
icon

Best answer by PeeyushBansal 15 October 2018, 07:49

View original

21 replies

Userlevel 7
Badge +27
@Sherly - If you want a professional looking certificate, then you'll have to write some code. See this thread: https://www.qualtrics.com/community/discussion/1582/send-user-a-customized-pdf-after-exam-completion.

If you can settle for something less, you can create something using html as a end of survey message or an email trigger.
Userlevel 2
Badge +3
Hi Tom,

Thank you for your answer. I have a look your thread, it seems too complicated for me.
Related to use HTML or email trigger, could you explain more?

Thank you,
Best Regards,
Sherly
Userlevel 7
Badge +33
You can also use trigger email and draft a certificate in your email. When at last user input email, an automated email is triggered to the participants.
Userlevel 2
Badge +3
Hi Bansal,thank you.
Do you have a thread on how to put the trigger email in qualtrics?
I am new on Qualtrics.
Thank you
Userlevel 7
Badge +33
Yes , Please read below

https://www.qualtrics.com/support/survey-platform/survey-module/survey-tools/email-triggers/

In To field, you can pipe respondent email
Badge +1
you have to go to tools there is an option for trigger email.

Also after survey you can show descriptive text and design it form like .
Userlevel 2
Badge +3
Thank you all for the help.
Userlevel 2
Badge +3
> @bansalpeeyush29 said:
> Yes , Please read below
>
> https://www.qualtrics.com/support/survey-platform/survey-module/survey-tools/email-triggers/
>
> In To field, you can pipe respondent email

Hi Bansal,

I finally use this to give my certificate. I do it by put one row and one coloumn as a box. I would like to ask, is there anyway for me to change the background colour for the box to cream maybe? Only the box, not all email. Thank you.
Userlevel 7
Badge +27
Add a background color style to your box in html mode (I'm guessing your box is a td tag):
```
<td style="background-color:#FFFDD0">Your box content</td>
```
Userlevel 2
Badge +3
It works!
Thank you!
Userlevel 2
Badge +3
Hi @TomG or @bansalpeeyush29 ,

I would like to ask again about this feature. In my questionnaire, I provided a signature of the head of the company who will provide this certificate. I put the signature by inserting the picture of the signature. When I try it out, I get the certificate, however, the signature/the picture is downloadable. Will it be possible to make it not downloadable?

Thank you,
Hello, is there any update on a detailed explanation of how to auto-generate a certificate after survey completion? (Insert name onto certificate and generate PDF in browser)?
Userlevel 2
Badge +3
Hi @bramesh22, unfortunately, I am not able to do that. I decided to use other platform to claim the certificate.
Hi @sherly, thanks for letting me know. What did you use to do it?
Userlevel 2
Badge +3
Hi @Bramesh22, I used platform from my organisation.
Badge

You can create a custom message that is shown after a user successfully completes a quiz. Here's an example test certificate.
0.PNGHere's the custom message content:





 

   
Certificate of Completion

   
University of New Hampshire acknowledges that

   
${q://QID3/ChoiceTextEntryValue}

   
has successfully completed

   
Fork Lift Safety Training

   
on ${date://CurrentDate/FL}

   Cert# ${e://Field/ResponseID}
      ">https://unh.az1.qualtrics.com/CP/Graphic.php?IM=IM_beXuyZvRm6SFNNc">
 



You will need to change:
1) the user's name variable: (shown as: ${q://QID3/ChoiceTextEntryValue} in custom message above)
2) the course name in the template (is listed as: Fork Lift Safety Training above)
3) Add your organization name and logo

Userlevel 2
Badge +3

You can create a custom message that is shown after a user successfully completes a quiz. Here's an example test certificate.
0.PNGHere's the custom message content:

');
 w.document.close(); // necessary for IE >= 10
 w.focus(); // necessary for IE >= 10*/
 w.print();
 return true;
}

 
print certificate

 

 

   
Certificate of Completion

   
University of New Hampshire acknowledges that

   
${q://QID3/ChoiceTextEntryValue}

   
has successfully completed

   
Fork Lift Safety Training

   
on ${date://CurrentDate/FL}

   Cert# ${e://Field/ResponseID}
      <a href=">https://unh.az1.qualtrics.com/CP/Graphic.php?IM=IM_beXuyZvRm6SFNNc">
 

 


You will need to change:
1) the user's name variable: (shown as: ${q://QID3/ChoiceTextEntryValue} in custom message above)
2) the course name in the template (is listed as: Fork Lift Safety Training above)
3) Add your organization name and logo

 

 

 

document.write() is a strongly discouraged method for JavaScript: https://developer.mozilla.org/en-US/docs/Web/API/Document/write

I’d recommend looking into other methods of appending to the new window’s document, particularly using jQuery: https://api.jquery.com/append/

I know you could also use the at-media print method to exclude certain elements when printing the document: https://developer.mozilla.org/en-US/docs/Web/CSS/@media

That being said, CSS files uploaded to Qualtrics’ library is recognized as a text/plain instead of a text/css file, leading to errors if you import it unfortunately. And the only ways I’ve found to get around it are not really recommended.

Userlevel 2
Badge +3

Update: The best way you could do this with CSS and very little JavaScript is just:

  1. Create a <style type=”text/css” media=”print”> tag on the page of your certificate via the rich content editor of the certificate Text/Graphics question per se and then inside that, set styles to make what you don’t want to show in the print not show.
  2. Make the print button run window.print() when clicked.
Badge

My certificate works fine on Submit but when you try to print it the certificate is split across two pages. (see screenshot). I have tried multiple CSS tags like: background-position: center top; to no avail. I’d appreciated any help on getting this cert to print on one page. 

Badge

After hours of fiddling with the custom CSS, we finally found the answer. 

In the @media print, we used the -300px for the top and -50 for left which brought the certificate image (.centered-background) up to the top of the page. Now we had the certificate on the one page, instead of it splitting two pages. Then setting the @page to landscape brought everything together. Now, it was a matter of getting the name of the person (.content1) to be positioned on the certificate after moving it up and over. The trick was to use !important after the top 3px and left 325px. Without the !important, the name wouldn't move. 

/* Print-specific styles */
@media print {
.centered-background {
width: 800px;
height: 600px;
overflow: visible;
position: absolute;
top: -300px;
left: -50px;
}

@media print {
.content1 {
position: absolute;
top: 3px !important;
left: 325px !important;
transform: translate(-50%, -50%);
z-index: -1; /* Ensure content is on top of the background */
}
}

/* Targets all the pages */
@page {
size: landscape !important;
}

 

Badge

Here’s the screen shot of how it looks now.

Leave a Reply