Show/hide button | XM Community
Skip to main content
Solved

Show/hide button

  • November 27, 2018
  • 4 replies
  • 109 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.!

Best answer by Anonymous

> @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

4 replies

NiC
QPN Level 5 ●●●●●
Forum|alt.badge.img+27
  • QPN Level 5 ●●●●●
  • November 27, 2018
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 ?

  • November 27, 2018
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

  • Author
  • November 28, 2018
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!!!

  • Answer
  • November 28, 2018
> @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