How can I add a print button to the survey?

YeonYeon Community Member Qubie ✭
edited October 2019 in Custom Code

How can I add a print button to the survey?

Hello all,

I know that this has been asked a few times now, but previous answers don't seem to be working for me. I am trying to include a print button at the very end of the survey to print the last page. The last page has a set of skills that pop up through display logic depending on previous answers, and I would like participants to print the set of skills. Is there any custom code (html) that might work?

Thank you for your help!

Best Answer

Answers

  • IgeeIgee Community Member Guru ✭✭
    edited October 2019

    @Yeon - you can use a jQuery code as below in the JS section of a question:

  • YeonYeon Community Member Qubie ✭

    @Igee - So I put that code in, but when I run a preview, it does nothing when I click the button. Does this function only work on certain browsers? Or is something blocking it? Thanks for your help!

  • IgeeIgee Community Member Guru ✭✭

    @Yeon - where have you added this piece of code? have you added it to the "addOnload" function in the JS and also are you using a jQuery append? as without the jQuery append this code will not work.

  • YeonYeon Community Member Qubie ✭

    @Igee - I am not very familiar with Javascript, how do I use a jQuery append? I had it added in "addOnload", but I didn't do anything with jQuery. Thanks again!

  • YeonYeon Community Member Qubie ✭

    @Igee - It worked perfectly! Thank you so much for all your help, appreciate it.

Sign In to Comment