Forbid spaces in a respondent's Text Entry submission? | XM Community
Skip to main content
Solved

Forbid spaces in a respondent's Text Entry submission?

  • April 23, 2025
  • 2 replies
  • 30 views

Forum|alt.badge.img+1

I’m looking to get respondents to submit “the first word that comes to your mind” on a certain topic, and want to ensure they only submit 1 word. As part of this, I want to forbid respondents from entering any spaces in their answer. I tried using the custom validation to do this, but am not having any luck (tried putting a space in there, and an “s” after googling that may be the regex version of a space?).

Does anyone know if custom CSS might be the solution here? And if so, what that code might look like?

 

Best answer by vgayraud

 

2 replies

vgayraud
QPN Level 6 ●●●●●●
Forum|alt.badge.img+58
  • QPN Level 6 ●●●●●●
  • 549 replies
  • Answer
  • April 23, 2025

 


Forum|alt.badge.img+1
  • Author
  • 2 replies
  • April 23, 2025

Perfect! That solved it. Thanks for the super-fast response.