Append to container using class name instead of ID | XM Community
Skip to main content
Solved

Append to container using class name instead of ID

  • October 10, 2019
  • 1 reply
  • 54 views

Hi, My company website is built using ReactJS, and does not contain any IDs throughout the markup. I would like to insert custom HTML into a part of this site. However, the docs say that I must latch on to an ID specifically (https://www.qualtrics.com/support/website-app-feedback/creatives-tab/creative-types/custom-html-creative/). When I use an ID it works, but if I use a class or any other selector it does not work. How can I work around this without making any changes to the website itself? I just want to be able to select by .classname instead of #idname Thanks, Joe

Best answer by MSobotta

I have this same issue as our designers are starting to use classes over ids, which is good for design, but not all that helpful for Site Intercept. I believe you should put in a request to the Product Ideas area.

1 reply

MSobotta
Level 4 ●●●●
Forum|alt.badge.img+25
  • Level 4 ●●●●
  • Answer
  • October 10, 2019
I have this same issue as our designers are starting to use classes over ids, which is good for design, but not all that helpful for Site Intercept. I believe you should put in a request to the Product Ideas area.