Single Footer Text | XM Community
Skip to main content
Solved

Single Footer Text

  • October 18, 2021
  • 4 replies
  • 247 views

Forum|alt.badge.img+5

Is it possible to have a footer text on only one page/question and not the entire survey?

Best answer by JeremyK

It goes against the nature of a header/footer a little bit, but sure you can. You need an "anchor" on the page you want the footer to display on. I'd create a div element in the footer and then on the page you want to display a custom footer, use JavaScript to set the div's innerText. You'll then have to wipe said div's innerText when leaving the page so the footer disappears on all subsequent pages, probably with an on('click') event listener attached to the NextButton.

4 replies

pogi
Level 2 ●●
Forum|alt.badge.img+14
  • Level 2 ●●
  • October 18, 2021

You could use javascript to display text using the question ID. I use the following code in the Header to change the title of the buttons on the response summary before survey is submitted:


Forum|alt.badge.img+5
  • Author
  • Level 2 ●●
  • October 19, 2021

pogi Not sure I understand your response. In the survey you have the options to have header and footer text. It however applies that to all the block/pages/questions. I want to know if I can have a specific foot text on a single question/page and not the entire survey. Hopefully this helps clarifies or maybe I do not understand your response.


JeremyK
Level 3 ●●●
Forum|alt.badge.img+7
  • Level 3 ●●●
  • Answer
  • October 20, 2021

It goes against the nature of a header/footer a little bit, but sure you can. You need an "anchor" on the page you want the footer to display on. I'd create a div element in the footer and then on the page you want to display a custom footer, use JavaScript to set the div's innerText. You'll then have to wipe said div's innerText when leaving the page so the footer disappears on all subsequent pages, probably with an on('click') event listener attached to the NextButton.


Forum|alt.badge.img+5
  • Author
  • Level 2 ●●
  • October 26, 2021

JeremyK Thanks, would you be so kind and able to provide details steps and JavaScript I can use to do all of this please and thank you.