How to insert checkbox into question text? | XM Community
Solved

How to insert checkbox into question text?

  • 5 July 2019
  • 4 replies
  • 191 views

I'd like to insert a checkbox into the question text (not as a choice).

My question currently has this HTML:
`<input type="checkbox"/> Some text`

It looks like this in the Survey Editor:
!

But the actual survey doesn't show the checkbox:
!

When I inspect the code, it says:
`<input type="checkbox" class="QWatchTimer">Some text`

Is this an issue with underlying CSS? How do I override it?

Thank you!
icon

Best answer by TomG 5 July 2019, 21:25

View original

4 replies

Userlevel 7
Badge +27
Yes, the theme CSS is hiding the checkbox. Add a style attribute to the input tag to override the styles that are hiding it. You can see what these are in the Inspector (e.g., zero height and width, zero opacity, etc.).
The opacity was 0. Setting it to 100 did the trick. Thank you!
Badge +1
Hi Helenho,

Could you help show how to set the opacity to 100? Thanks very much!
within the html tag, set the CSS styling

style="opacity:100; rest of styling"

Leave a Reply