Inserting Checkbox in Text Entry Form | XM Community
Skip to main content
Solved

Inserting Checkbox in Text Entry Form

  • February 11, 2021
  • 3 replies
  • 1208 views

Forum|alt.badge.img

I have a form that looks like this
Screen Shot 2021-02-11 at 5.43.37 PM.pngI'd like to insert a checkbox under Phone that reads "Opt-in to receive text messages". Any help how this could be achieved would be appreciated.

Best answer by rondev

The best would be create separate Yes/No question for this, but if you still want it below text box then you need to use JS, which will create a checkbox below and on click of next button, record the status of checkbox in an embedded data.

3 replies

rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • Answer
  • February 14, 2021

The best would be create separate Yes/No question for this, but if you still want it below text box then you need to use JS, which will create a checkbox below and on click of next button, record the status of checkbox in an embedded data.


abbey_andrews

rondev I am looking for the exact same thing - adding a consent checkbox to a form. Is there existing code I can pull from to complete this on my survey? I know nothing about JavaScript so I'd appreciate the help!


MattiasM
Level 5 ●●●●●
Forum|alt.badge.img+63
  • Level 5 ●●●●●
  • October 12, 2021