• Resolved sylvain68

    (@sylvain68)


    Hello,

    I just wanted to report a configuration validation bug to you.

    When the email field is hidden in the form, 2 configuration validation errors are detected in the email tab on “Reply-To:[your-email]” and”[your-email]”.

    Problem also reproduced on a fresh installation of WordPress and using the default form created by Contact Form 7 (WP 5.3 / CF7 5.1.5).

    To cause the validation errors, simply change the shortcode [email* your-email] to [hidden your-email default:user_email “[email protected]”]

    Despite these errors (false-positive), the form works correctly and emails are sent.

    Thank you in advance,
    Sylvain

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

    (@takayukister)

    It’s not a bug or false-positive. See https://contactform7.com/configuration-errors/invalid-mailbox-syntax/

    You might think an input value in a hidden field is unchangeable. Actually it is not true.

    Thread Starter sylvain68

    (@sylvain68)

    Hello @takayukister,

    Thank you very much for your quick reply.

    Of course I had consulted your documentation (I never open a support topic without it).

    Sorry but I’m trying to understand.

    In my case, I think it is more a “warning” than a validation error because this form is placed on a part of the site only accessible by connected users. The field [your-email] will therefore always have a value (of course the CF7 validation script does not know this).

    But by explicitly adding an address like “[email protected]”, there will also always be a value: [hidden your-email default:user_email “[email protected]”].

    So I just suppose that CF7 absolutely wants to find an [email*] tag in the form. Otherwise it considers that the email address may be invalid.

    Isn’t it?

    Thank you in advance and have a great day.

    Sylvain

    Thread Starter sylvain68

    (@sylvain68)

    (and this would imply that the only way to avoid validation errors is to use [email*…] while hiding it in css)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Validation errors (false-positive) with [hidden your-email default:user_email]’ is closed to new replies.