Add dynamic text box in the questions | XM Community
Skip to main content
Question

Add dynamic text box in the questions

  • May 11, 2020
  • 1 reply
  • 199 views

I would like to get mutliple text entries from user, letting them to type-in multiple options available for a question. I using text box of type form without any label (since all the text box are of same type, as directed by the question).
Is there a way I can provide an "Add more" button to the users, allowing them to add more text boxes without labels?

1 reply

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • May 11, 2020

You can do this with JavaScript. Set up the question with the maximum allowable number of text boxes. Then hide the ones you don't want shown initially. Have the "Add more" button reveal the first hidden text box.
I think this has been asked before. Search the Community for additional info.