• Hi,

    I have added number validation field to a form.
    What I understand is that should only accept numbers, but it accepts letter “e” “.” “,” ?

    How to have it valiting properly?

    Added CF7 to 2 different sites, by both of them it happens the same when validating numbers.

    Cheers

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

    (@takayukister)

    Contact Form 7 uses is_numeric() to find whether the given value is a number, thus letters “e” and “.” are accepted. You can customize the result using the wpcf7_is_number filter hook.

    • This reply was modified 6 years, 6 months ago by Takayuki Miyoshi. Reason: added link to php.net
    Thread Starter wph4

    (@wph4)

    Thanks Takayuki for coming by.

    How to use this hook? not a developer here ??

    Cheers

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘number field validation’ is closed to new replies.