How do I hide the first question after an inline question | XM Community
Skip to main content
Solved

How do I hide the first question after an inline question

  • March 9, 2020
  • 10 replies
  • 71 views

Forum|alt.badge.img
I want to avoid the first question to be shown after this has been answered via an inline question. - One approach i read was to use an auto-forward timer, but that conflicts with one of the fraud-detection methods of Qualtrics. - Another option I tried is to use conditional showing of the question, but that also did not work with this first question Is there a way to fully hide this first question (which is already answered via inline question), so only the second question is shown on that page?

Best answer by TomG

> @Djurre said: > Hi TomG - thanks! I tested the script but for reason it seems not to work for the first survey question, with inline question in the e-mail. When trying the functionality on second question (changing the values), it works well. But for some reason my first question remains visible. > You added the JS to the first question, correct? Try setting page transition to None and/or addOnload to addOnReady.

10 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • March 9, 2020
Assuming it is a multiple choice question, try: ``` Qualtrics.SurveyEngine.addOnload(function() { var q = jQuery("#"+this.questionId); if(q.find("input:checked").length > 0) q.hide(); }); ```

Forum|alt.badge.img
  • Author
  • March 9, 2020
Hi TomG - thanks! I tested the script but for reason it seems not to work for the first survey question, with inline question in the e-mail. When trying the functionality on second question (changing the values), it works well. But for some reason my first question remains visible.

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Answer
  • March 9, 2020
> @Djurre said: > Hi TomG - thanks! I tested the script but for reason it seems not to work for the first survey question, with inline question in the e-mail. When trying the functionality on second question (changing the values), it works well. But for some reason my first question remains visible. > You added the JS to the first question, correct? Try setting page transition to None and/or addOnload to addOnReady.

Forum|alt.badge.img
  • Author
  • March 19, 2020
Hi Tom, it works :-) thank you!

  • August 26, 2021

Hi TomG!! Qubie here (Qualtrics newbie lol). I am making my first attempt. I currently have the inline question working but it still populates/shows when the survey opens. It does show the selected response but would love to find a way to move right to Q2. Would you be able to walk me through how to do that?


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • August 26, 2021

  • August 26, 2021

TomG Page break after Q1


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • August 26, 2021

https://community.qualtrics.com/XMcommunity/discussion/comment/40064#Comment_40064Try:
Qualtrics.SurveyEngine.addOnReady(function() {
var q = jQuery("#"+this.questionId);
if(q.find("input:checked").length > 0) this.clickNextButton();
});


  • August 26, 2021

TomG admitting before asking, this is a stupid question but...where do i put the code? In the body of the invite?


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • August 26, 2021