• Resolved j0s6h

    (@j0s6h)


    Hi there,

    the verification works fine, i.e. when trying a false code the form can’t be submit and when using the correct code that is sent to the email address that has been filled in the email input field the form can be sent.

    However, when the verification is active, the email address that has been filled in the email input field won’t get sent by CF7 to site admin, instead I get this (without the quotes):

    “<your-email>”

    See the two example forms below. Any ideas?

    This works (verification not active):

    CF7 Form tab:
    <label>First- and Last Name
    [text* your-name 40/ autocomplete:name placeholder "Please enter First- and Last Name"] </label>
    <label>E-Mail-Address
    [email* your-email 40/ autocomplete:email placeholder “Please enter your E-Mail-Address"] </label>
    [submit “Send”]
    
    CF7 E-Mail tab:
    First- and Last Name: [your-name]
    E-Mail-Address: [your-email]

    I get this from CF7 via email to site admin:

    First- and Last Name: John Doe
    E-Mail-Address: [email protected]

    The following does not work (verification active):

    CF7 Form tab:
    <label> First- and Last Name
    [text* your-name 40/ autocomplete:name placeholder "Please enter First- and Last Name"] </label>
    <label> E-Mail-Address
    [email* your-email 40/ autocomplete:email placeholder “Please enter your E-Mail-Address"] </label>
    [email* verification]
    [text* verification-otp placeholder “Please insert the verification code“]
    [submit “Send”]
    
    CF7 E-Mail tab:
    First- and Last Name: [your-name]
    E-Mail-Address: [your-email]

    I get this from CF7 via email to site admin, i.e. the email address “[email protected]” won’t be submit.

    First- and Last Name: John Doe
    E-Mail-Address: <your-email>
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter j0s6h

    (@j0s6h)

    I need to correct the last code-box in my previous post:

    First- and Last Name: John Doe
    E-Mail-Address: [your-email]

    The “your email” part is actually in square brackets.

    Thread Starter j0s6h

    (@j0s6h)

    I got it working.

    In case someone else stumbles across this problem, here is what worked:

    When using the (mandatory) email input field as the field where the otp is supposed to be sent to like this:

    CF7 Form tab:
    <label> First- and Last Name
    [text* your-name autocomplete:name placeholder "Please enter First- and Last Name"] </label>
    <label> E-Mail-Address
    [email* your-email verification autocomplete:email placeholder “Please enter your E-Mail-Address"] </label>
    [text* verification-otp placeholder “Please insert the verification code“]
    [submit “Send”]
    
    CF7 Mail tab:
    First- and Last Name: [your-name]
    E-Mail-Address: [your-email]

    the sending of the otp verification does not work because the script expects [email* verification …] consecutively (in this order with nothing inbetween). However, CF7 successfully submits name and email-address after the form is submit.

    _____

    When reversing the order of your-email and verification like this:

    CF7 Form tab:
    <label> First- and Last Name
    [text* your-name autocomplete:name placeholder "Please enter First- and Last Name"] </label>
    <label> E-Mail-Address
    [email* verification your-email autocomplete:email placeholder “Please enter your E-Mail-Address"] </label>
    [text* verification-otp placeholder “Please insert the verification code“]
    [submit “Send”]
    
    CF7 Mail tab:
    First- and Last Name: [your-name]
    E-Mail-Address: [your-email]

    requesting of the otp works fine, but CF7 does not send the email-address after the form is submit because its expects the name field your-email right after email* (like this: [email* your-email …] ).

    _____

    I used the following work-around with an additional mandatory Confirm Email input field like this:

    CF7 Form tab:
    <label> First- and Last Name
    [text* your-name autocomplete:name placeholder "Please enter First- and Last Name"] </label>
    <label> E-Mail-Address
    [email* verification your-email autocomplete:email placeholder “Please enter your E-Mail-Address"] </label>
    <label> E-Mail-Address
    [email* your-email-confirm autocomplete:email placeholder “Please repeat your E-Mail-Address"] </label>
    [text* verification-otp placeholder “Please insert the verification code“]
    [submit “Send”]
    
    CF7 Mail tab:
    First- and Last Name: [your-name]
    E-Mail-Address: [your-email-confirm]

    Requesting of the otp works (it is sent to the email-address filled in your-email), and CF7 sends the email-address that is taken from your-email-confirm (which must be the identical email-address as in your-email) after the form is submit.

    In case you would like to use a custom validation/confirmation of the email-field like in the third code-example and make sure CF7 drops an error-message if both the filled in email-addresses are not identical, the author of CF7 has a How-To-page right here:

    https://contactform7.com/2015/03/28/custom-validation/

    Plugin Author rajkakadiya

    (@rajkakadiya)

    Hi @j0s6h

    Glad to hear that everything is working fine. If you encounter any issues, please don’t hesitate to reach out to me at [email protected].

    Thread Starter j0s6h

    (@j0s6h)

    Hi there,

    thanks for getting back!

    The verification is working flawlessly. Great plugin!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘When verification is active CF7 doesn’t send email address’ is closed to new replies.