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

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.

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.


Leave a Reply