How to disable special characters and allow spaces

I am wanting a text field that only allows numbers, upper and lowercase letters and spaces. No special characters. How would I do that?

Hi Larissa. You can do that with the gform_field_validation filter. There are several discussions of that on this site. Here is one which shows the approach: the details about which characters to allow/block are slightly different:

If you need help modifying that code to meet your needs, please let us know here, or open a support ticket:

Thank you.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.