How to remain the first question of every page on its position when scrolling down? | XM Community
Question

How to remain the first question of every page on its position when scrolling down?

  • 14 October 2019
  • 4 replies
  • 97 views

Hi everyone,

I am a newbie in a world of coding, so I really need your help to solve my problem. I am designing a survey that has several pages, each page has 5 questions, the first question is a short story, the rest of questions asks respondents about the story's content. Therefore, it is wonderful if I can make the first question always appear when respondents scroll down.

I see that there is a discussion about how to fix position of an image, but this is a question, not an image, so I can not apply provided solution.

Thank you in advance for your help.

Tomas

4 replies

Userlevel 4
Badge +3
You could:

1. pipe the text of the story "question" into each subsequent question where it's needed: https://www.qualtrics.com/support/survey-platform/survey-module/editing-questions/piped-text/piped-text-overview/#PipingFromAPreviousQuestion
2. paste the text of the story into the header of the survey, though it'll show up on every single page

With #1, your question HTML would look like

```
${q://QIDX/pipedQuestionTextOrWhateverTheFieldisCalled}
Question 2
---
${q://QIDX/pipedQuestionTextOrWhateverTheFieldisCalled}
Question 3
```
> @KoalaTricks said:
> You could:
>
> 1. pipe the text of the story "question" into each subsequent question where it's needed: https://www.qualtrics.com/support/survey-platform/survey-module/editing-questions/piped-text/piped-text-overview/#PipingFromAPreviousQuestion
> 2. paste the text of the story into the header of the survey, though it'll show up on every single page
>
> With #1, your question HTML would look like
>
> ```
> ${q://QIDX/pipedQuestionTextOrWhateverTheFieldisCalled}
> Question 2
> ---
> ${q://QIDX/pipedQuestionTextOrWhateverTheFieldisCalled}
> Question 3
> ```

Thank you very much for your answer. Unfortunately, it does not work for my situation:

1. For the solution 1: stories have to be piped into every question, i.e. they appear again and again. This makes my survey look weird, because I will ask repeated several questions for each story.

2. For the solution 2: if I paste story into the header, the story will be fixed, but I have many stories that I need to change and randomize them in the survey. Is there any way to use different header for different block and randomize headers?

Hi Tomas,
Currently, I struggle with the same issue. Did you find a way to resolve your problem?
Thanks in advance,
Hannah


Userlevel 7
Badge +21

Answered here: https://www.qualtrics.com/community/discussion/14035/pin-instructions-to-top-of-page-as-participants-scroll-through-questions#latest

Leave a Reply