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

Show/hide button

  • Nov 27, 2018 8:51 PM UTC
  • 4 replies
  • 148 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
View original

4 replies

NiC
QPN Level 5 ●●●●●
Forum|alt.badge.img+28
  • QPN Level 5 ●●●●●
  • Nov 27, 2018 9:07 PM UTC
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 ?

  • Nov 27, 2018 11:48 PM UTC
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
  • Nov 28, 2018 2:07 PM UTC
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
  • Nov 28, 2018 5:16 PM UTC
> @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