As far as I can tell, there is no way to add a custom class to question elements - is that right?
It's possible to use a custom class in the question text, but if I want to style the question element itself, the only way to do that is by referring to specific question IDs. So if I have a subset of questions that need different styling (at the level of the question element), I have to add the ID for each of these questions individually to my custom CSS.
Just want to make sure I'm not missing something.
Solved
Assign custom class to question elements?
Best answer by npetrov937
I believe you got it right - you need question IDs and to manipulate the HTML via JS.
Here are two examples that might get you on the right track:
Example 1 - Adding a % sign after specific text entry fields in a side by side question (see this thread for code and .qsf)
Example 2 - Chaing the color of a slider question as the value of the slider changes (see this thread)
Hope that helps!
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.