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

How to insert checkbox into question text?

  • July 5, 2019
  • 4 replies
  • 376 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!

Best answer by TomG

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.).

4 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Answer
  • July 5, 2019
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.).

  • Author
  • July 5, 2019
The opacity was 0. Setting it to 100 did the trick. Thank you!

Forum|alt.badge.img+1
  • September 19, 2019
Hi Helenho, Could you help show how to set the opacity to 100? Thanks very much!

  • Author
  • October 30, 2019
within the html tag, set the CSS styling style="opacity:100; rest of styling"