Question and Block Preview Different From Survey Preview | XM Community
Skip to main content

I have a survey with CSS added into the “Look & Feel” portion. It adds a line before the last option (“Other, please specify: “).

In the question preview AND the block preview, this displays perfectly. However, in the survey preview the line is missing.

  • I have tried rebuilding both the question and the block to no avail. Single choice questions in another block work, so unsure about the cause.
  • I tested on both Edge & Chrome and I cleared my cache / cookies.
  • There is no specific HTML in the question.

Does anyone know what could be causing this / how I would fix it? Thank you!

Survey Preview: 

 

Block Preview: 

 

What CSS are you using?


@TomG 

I figured out the issue.

I was using a <ul class="ChoiceStructure"> with each choice as a <li class="Selection ...">.So - after running an Inspection - the fix was simple: the last list item doesn't use the class Choice — it uses Selection (Selection reg or Selection alt). That’s why my previous selector wasn’t matching anything.

Had to replace Replace li.Choice:last-of-type with li.Selection:last-of-type.

Everything else worked perfectly! 


Leave a Reply


OSZAR »