Printing my consent form as an entire block | XM Community
Skip to main content

Hello,
I'm currently programming a screener for an upcoming study I'll be launching. Our information statement is long and we have many page breaks to help spread out all the information.
At the end of the survey I have a working print button using the following code:
Qualtrics.SurveyEngine.addOnload(function()

{
           jQuery('#Buttons').append('

');
});
This works great (thanks to this community!) but I'm realizing I'd like the entire block that contains all of my consent form (i.e. all the questions in the block).

Is there a way to do this? Thank you so much for your help, I appreciate it!

Hi there, I found a thread online that I think will be helpful to you:
https://gist.github.com/andrewlimaza/490a69417d9fe2df3f668195a7661605
Try adding the below to the HTML view of your question:



Text on the Page


Full Text of Consent Form

Update the Text as needed. In the survey, the "printme" text will be hidden. When the respondent goes to print, the "no-printme" text will be hidden.


Hi Tom,

Thank you so much for taking the time to help, and sorry for sure a late reply!
We've tried using the above code but haven't had any luck... We have a large information statement, so pasting in the full text has proven to be tricky.
We keep getting this error:
Invalid JavaScript! You cannot save until you fix all errors: Unexpected token <

Any ideas? Thanks again for your help, I so appreciate it!


Hi, it sounds like you are adding the above to the JavaScript of the question if you are running into that error. Try using the Rich Content Editor for the question and pasting the above code to the HTML/Source view by clicking the "<>" icon.


Leave a Reply