Features

Prevent a form from being filled with only space characters.

Hi, I'd like to have the option to have Tally validate or set a condition that prevents submitting a form that only contains space characters, to avoid receiving blank responses. I know I can enable the minimum character limit, but if someone presses the spacebar multiple times, I receive a blank response.

4 comments

  1. This is a critical issue that really needs to be addressed — blank spaces should not be treated as valid form entries.

    I was advised to use conditional logic to hide the submit button if a field contains a space, but that creates additional problems.

    For example, if the field is for a first name and the user accidentally starts with a space before typing their name, the button remains hidden. Alternatively, if you use “is” instead of “contains”, a single space might correctly hide the button — but multiple spaces will cause it to reappear.

    Neither option is a clean or reliable solution. This needs a better approach to validate input properly and ignore empty or whitespace-only submissions.

  2. Tally1y ago

    Hey! You can achieve this using Conditional Logic: set a rule that disables the submit button if the response only contains spaces. Here's a guide that can help: https://tally.so/help/conditional-form-logic

    If you need help setting it up, feel free to reach out to our support team — we’re here to help! https://tally.so/support

    ✌

    1. Tally I was advised to use conditional logic to hide the submit button if a field contains a space, but that creates additional problems.

      For example, if the field is for a first name and the user accidentally starts with a space before typing their name, the button remains hidden. Alternatively, if you use “is” instead of “contains”, a single space might correctly hide the button — but multiple spaces will cause it to reappear.

      Neither option is a clean or reliable solution. This needs a better approach to validate input properly and ignore empty or whitespace-only submissions.

    2. Brandi Jordan Something built-in or native would be wonderful for preventing this.

      We have an input validation that can relate to this type of checks you'd want us to perform on inputs: https://tally.so/feedback/p/input-validation-regex

      As a workaround for now within the app currently, is build the logic manually for accepted characters, using the "Contains" operator (type out each letter of the alphabet and the numbers - see screenshot attached).

      Make another logic set for the single space, so soon a space is included it blocks progress (remove this if you'd need spaces after words though - i.e., a first and last name field, etc.).

      We understand this may not be ideal and it is a long way of addressing the issue and would like to thank you for your patience and understanding as we get through to this task in the future.

      • img/xrs0v5su0r7gzxzc3c1oq1mg