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

Forbid spaces in a respondent's Text Entry submission?


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

 

View original

2 replies

vgayraud
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+67
  • QPN Level 8 ●●●●●●●●
  • Answer
  • April 23, 2025

 


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

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