Can I assign a different footer to each block of questions? | XM Community
Skip to main content
Question

Can I assign a different footer to each block of questions?

  • June 21, 2022
  • 3 replies
  • 124 views

Forum|alt.badge.img+1

In block 1, I would like to have picture #1 in the footer. In block 2, I would like to have picture #2. How can I accomplish this?

3 replies

bgooldfed
Level 4 ●●●●
Forum|alt.badge.img+25
  • Level 4 ●●●●
  • June 22, 2022

Hi hkleeman,
You can set CSS elements via jQuery, so you can just set a footer image for each block with something like this (untested):
jQuery("#Footer").css("background-image", "yourimagename.jpg");

//you might need this if the image tiles
jQuery("#Footer").css("background-size", "100% 100%");
You may need to tweak some other CSS properties depending on your image and footer dimensions.
Best of luck!


Forum|alt.badge.img+1
  • Author
  • June 22, 2022

Hi bgooldfed,
Thanks for the help. Where can I use jQuery on a block? I can only see how to add jQuery on each individual question.


bgooldfed
Level 4 ●●●●
Forum|alt.badge.img+25
  • Level 4 ●●●●
  • June 22, 2022

Hi hkleeman,
Apologies, code can only added to individual questions. If you add it to the first question of each block though, it should work just fine (assuming one block displays at a time, and isn't divided over multiple pages). Does that solve your problem?