-
lyviocavalierAsked on July 31, 2025 at 4:36 PM
Hello,
I would like to know how to not allow spaces to be entered in short text fields.
Regards
-
Eduardo JotForm SupportReplied on July 31, 2025 at 5:26 PM
Hi lyviocavalier,
Thanks for reaching out to Jotform Support. In order to not allow spaces to be inserted into a Short Text field, you can use the Input Mask in the settings. You'll be able to restrict users to match the format you specify in the Short Field. It's quite easy to do that. Let me show you how:
- In Form Builder, click on the Gear icon next to your Short Text field and select the Options tab on the right panel.
- Scroll down to Input Mask, toggle it on, and insert how you'd like the field to be filled out. Use @ symbol to mask letters, # for numbers and * for both. And that's it.
Now, you can set up the fields how you want the users to fill it out.
Give it a try and let us know how it goes.
-
lyviocavalierReplied on July 31, 2025 at 8:13 PM
Unfortunately, it doesn't work.
I had already tried this solution but I do not know in advance the number of characters that will be entered by the person who fills out the form. If I don't put enough @ we can't enter all the text and if I put too much I have an error message saying that the value of the field must fill the mask.
-
Christine JotForm SupportReplied on July 31, 2025 at 8:39 PM
Hi lyviocavalier,
I’ll need a bit of time to look into this. I’ll get back to you as soon as I can.
We appreciate your patience while we work on a solution.
-
Christine JotForm SupportReplied on July 31, 2025 at 8:50 PM
Hi lyviocavalier,
Unfortunately it is not possible to not allow spaces on Short Text field. While the feature you're looking for isn't available at Jotform right now, we've gone ahead and escalated your request to our developers. Exactly when or if it's developed depends on their workload, how viable it is, and how many other users also request it. If there are any updates, we’ll circle back to this thread and let you know.
Thanks for your patience and understanding, we appreciate it.
Your Reply
Something Went Wrong
An error occurred while generating the AI response. Please try again!