• Hi,
    I need to disable “email validation”. How can I do that?

    Additional info:
    I’ve found these solutions but none of them worked for me??:

    1- Change Html Email
    From
    <input type=”email” >
    To
    <input type=”text” >
    I couldn’t find the Html email

    2- Add this code to Function.php

    <form novalidate>
    <input type=”email”/>
    </form>

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Hi @medenz!

    Can you please tell me where and which exact email field it is you are trying to remove the validation for?

    Cheers!

    Thread Starter medenz

    (@medenz)

    Hi @rynald0s!
    Thank you for responding.
    Question:
    I’ve installed “WooCommerce Waitlist” plugin but I need to disable “email validation”.
    Purpose:
    Customers can enter their cellphone number instead of email.

    This is a link that you can see what I’m working on that:
    https://atlantic7.ir/reebokwhite/

    If you need my username and password to login in the backend I can send it to you.
    Sincerely
    Mendez

    Thread Starter medenz

    (@medenz)

    Hi, guys
    Is there anybody to help me out to disable email validation?

    Thread Starter medenz

    (@medenz)

    I’ve found the code:
    <div class=”form-group center-block”>
    <input type=”text” style=”width:100%; text-align:center;” class=”cwgstock_email” name=”cwgstock_email” placeholder=”<?php echo $instock_api->sanitize_text_field($placeholder); ?>” value=”<?php echo $email; ?>” />
    </div>

    How to disable email validation?
    I’ve changed
    <input type=”email”
    to
    <input type=”text”

    Thread Starter medenz

    (@medenz)

    I guess this is a code that related to my question:
    How can I change that to accept numbers?
    <input type=”number” value=”” id=”wcwl_email_1662″ name=”wcwl_email” class=”wcwl_email” placeholder=”Email address”>

    Thread Starter medenz

    (@medenz)

    Latest modification:
    I’ve got a piece of code that validates email. I need to disable that validation, so the user can type a cellphone number instead of an email. What I’ve done: Step 1: Remove @ to accept the number. I’ve searched in *.js files and change code from

    i=/^(([^<>()\[\]\\.,;:\s@”]+(\.[^<>()\[\]\\.,;:\s@”]+)*)|(“.+”))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
    to this i=/[0-9]/;

    Step 2: I’ve changed the type to number but it doesn’t work. this is the code:

    <input type=”number” value=”” id=”wcwl_email_1662″ name=”wcwl_email” class=”wcwl_email” placeholder=”Email address”>
    After doing these when I enter a cellphone number instead of an email I receive this error message: “I’m afraid something went wrong with your request. Please try again or contact us for help”

    this is the link that I’m working on: https://atlantic7.ir/nikeorange/

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘disable email validation’ is closed to new replies.