Formatting text in a dropdown list | XM Community
Skip to main content
Question

Formatting text in a dropdown list

  • April 7, 2019
  • 2 replies
  • 121 views

I have a survey where I am asking about species identification. I want to italicize the species which are in a dropdown list. In the survey GUI, there wasn't a rech context editor, but I was wondering if this could be managed with by exporting the qsf file, and adding a tag in there. Would I use tags found here: .QuestionText .ExportTag{font-style:italic} ? If so, where should I put this into my qsf file? After the value of the Display key? Example: "Choices":{"1":{"Display":"Aedes aegypti".ExportTag{font-style:italic}} The above does not work, but I don't know how the qsf file is parsed.

2 replies

  • 0 replies
  • April 7, 2019
Hello @agooodwin , Paste the below code in the js(OnReady) of the drop down question jQuery("#"+this.questionId+" select").css("font-style","italic");

WaterSampler
Level 2 ●●
Forum|alt.badge.img+1
  • Level 2 ●●
  • 105 replies
  • April 7, 2019
Maybe use some javascript. See this one: https://stackoverflow.com/questions/7946196/how-to-make-text-bold-italic-and-underline-using-jquery