Show/hide button | XM Community
Solved

Show/hide button

  • 27 November 2018
  • 4 replies
  • 59 views

I would like to add a show/hide button after a survey question or within the question itself. The show button should link to a document that could embed within Qualtrics when opened or open in another page. Information contained in the document will assist the user in completing the survey question and possibly returning to update their responses based on information provided. Hide button should close document.!
icon

Best answer by Anonymous 28 November 2018, 18:16

View original

4 replies

Userlevel 7
Badge +27
what kind of document is it , Is it a PDF or some proprietary format ? And would it be good if the Show button throws a pop up and the close button closes the document or the link to the document ?
Hello @Gail ,

Assuming you have your description URL
Paste the below code in the js(OnReady) of the question

var element="<br><button value='Description' name='Description' ><a style='text-decoration: none; color:black' href='DOCUMENT_URL' target='_blank'>Description</a></button>"
jQuery("#"+this.questionId+" .QuestionText").append(element);


OR

Please follow this post
Hoping to have button (click for additional information - pdf doc) and close to close that doc.
An accordion that could collapse would work as well. Looking to have this open in same page directly below question.

Thank you for any help you can provide!!!
> @Gail said:
> Hoping to have button (click for additional information - pdf doc) and close to close that doc.
> An accordion that could collapse would work as well. Looking to have this open in same page directly below question.
>
> Thank you for any help you can provide!!!

This requirement can be achieved with this post

Leave a Reply