there is a way to set the number of characters / digits for the form fields? | XM Community
Solved

there is a way to set the number of characters / digits for the form fields?

  • 10 November 2021
  • 2 replies
  • 228 views

Good morning,
We have a question with four form fields. We would like respondents to enter  1 number in two of these and 1 letter in the other two.
is it possible to set the number of characters / digits for the form fields?
 
Thank you very much

icon

Best answer by ElieD 10 November 2021, 14:28

View original

2 replies

Userlevel 6
Badge +37

Hi Marzia_D,

You have to add custom validation on your text fields in order to control the answers.

For example, you can easily force a number beetween 0-9
image.png
For the single character, it is a little more tricky as you need to use regex :
image.pngThe Regex :

/^[a-z]$/
will authorize only a single character beetween "a" and "z"

Badge

So I have a text entry field and have added validation such that the user much respond with a numerical answer. I now want to use these numbers to plot a figure in a Qualtrics report. The issue I am having is that I am unable to utilize this field as a breakout for the figure. Am I missing something, or is this a glaring oversight on Qualtrics part?

Leave a Reply