Dynamic Header and Footer Based on Metadata | XM Community
Skip to main content
Question

Dynamic Header and Footer Based on Metadata

  • January 17, 2025
  • 1 reply
  • 24 views

YenMejia_Voce
Level 4 ●●●●
Forum|alt.badge.img+20

Hello community,

Could you please help me validate if there is a way to use a header and footer dynamically based on a specific metadata field, such as "Business Unit"? For example, having a specific header display when a particular value of the metadata is detected.

I hope you can assist me with this.

Thank you in advance!

1 reply

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5857 replies
  • January 17, 2025

You can dynamically change the header and footer by adding JavaScript to the header or footer inside a <script> tag. For example, you could pipe the “Business Unit” embedded data field into the JavaScript, then modify the content or format of the header/footer based on the value.


Leave a Reply