Formatting text in a dropdown list | XM Community
Skip to main content
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.
Hello @agooodwin ,



Paste the below code in the js(OnReady) of the drop down question



jQuery("#"+this.questionId+" select").css("font-style","italic");
Maybe use some javascript. See this one:

https://stackoverflow.com/questions/7946196/how-to-make-text-bold-italic-and-underline-using-jquery

Leave a Reply