• Hi!
    Could you please explain if there is a solution in Contact Form 7 to exclude numbers in text line fields? For example, in [your-name] field Contact Form 7 allow for default enter both – letters and numbers there. This creates a spam problem. It would be nice to be able to allow only text characters and restrict numbers for some text fields. Is there such a built-in feature in Contact Form 7?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Excluding numbers will make no sense. If you are suffering from spams why don’t you activate spam protection?

    FAQ > I get spam messages through my contact forms. How can I stop them?

    Thread Starter KR. Laboratories

    (@krashlab)

    Dear Takayuki,

    Your plugin is great, but text field validation and antispam system are slightly different things. There is such a thing as Client-Side Form Validation. According to its logic, each text line field should allow a certain value. For example, the name field accepts only text, the phone field accepts only numbers. I want to implement this logic. That’s why I’m wondering if there are any built-in solution on the Contact Form side, maybe some hooks through functions.php. The fact that you can enter numbers instead of a name – I consider it a violation of the form logic and a violation of the security policy. Such form will not pass the pentest. I want, that CF7 users to be able to configure field validation according to security standards, not just enable the antispam system and block requests from a specific IP/User-Agent, etc.

    Best regards and thanks for your work!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Allow only text and exclude numbers in text line fields’ is closed to new replies.