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

How to insert checkbox into question text?

  • Jul 5, 2019 6:37 PM UTC
  • 4 replies
  • 410 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.).
View original

4 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Answer
  • Jul 5, 2019 7:25 PM UTC
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
  • Jul 5, 2019 8:37 PM UTC
The opacity was 0. Setting it to 100 did the trick. Thank you!

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

  • Author
  • Oct 30, 2019 8:01 PM UTC
within the html tag, set the CSS styling style="opacity:100; rest of styling"