larissa23
(larissa23)
July 12, 2022, 1:40am
#1
I am wanting a text field that only allows numbers, upper and lowercase letters and spaces. No special characters. How would I do that?
chrishajer
(Chris (Gravity Forms))
July 12, 2022, 1:04pm
#2
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:
Hello,
I saw the piece of code below in this forum (Filtering a specific field [RESOLVED] - #9 by chrishajer ). I believe I need a slight modification to this filter, but was unable to modify it properly.
I have 3 single line fields (not name fields) in a specific form (form id 136). In these fields, I want people to be unable to write commas or semicolons. If they write a name containing this kind of punctuation, I need the form to display an error, asking the user to fix the input.
Example o…
If you need help modifying that code to meet your needs, please let us know here, or open a support ticket:
https://www.gravityforms.com/open-support-ticket/technical/
Thank you.
system
(system)
closed
August 11, 2022, 1:04pm
#3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.