Do not allow decimals in text field response | XM Community
Skip to main content
Solved

Do not allow decimals in text field response

  • May 9, 2025
  • 1 reply
  • 52 views

Forum|alt.badge.img+2

How do I restrict so that whole numbers only and not decimals are allowed?  I thought entering 0 in Max Decimals under validation would work, but apparently not.

 

Also, in other form fields where I have custom validation I cannot ALSO add validation to require a whole number, or at least it doesn’t seem like I can.  Seems like I am limited to one set of validation logic?  We have logic to require a value greater than that answered in a prior question and there isn’t a way to add a content validation on top of that.

Best answer by MatthewM

I’m not sure why your field would accept decimals if you have Max Decimals set to 0. I would contact Qualtrics Support and ask them to look into it.

For your second issue, you should be able to add conditions to the validation that prevent decimals (e.g., “Does not contain ‘.’”) If you can share a screen shot of your validation, that might help Community members identify a solution.

1 reply

MatthewM
Level 6 ●●●●●●
Forum|alt.badge.img+30
  • Level 6 ●●●●●●
  • 1085 replies
  • Answer
  • May 9, 2025

I’m not sure why your field would accept decimals if you have Max Decimals set to 0. I would contact Qualtrics Support and ask them to look into it.

For your second issue, you should be able to add conditions to the validation that prevent decimals (e.g., “Does not contain ‘.’”) If you can share a screen shot of your validation, that might help Community members identify a solution.