user data / frontend-editing / compare fields + existing email

Support MB Builder user data / frontend-editing / compare fields + existing email

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #30015
    jw_blnjw_bln
    Participant

    Hi, In a customer portal I am using frontend-editing of user data.
    So, after correct login, the user can change their customer data.
    Next to other fields email is also editable.

    I am trying to check 2 email fields (one without saving) against each other in a customer portal (...equals to another field).
    I am using HTML5-Email fields. But it's not working. Even the email are similar it throws an error message.
    What could be the reason?

    In addition, is it possible to check for already existing emails in the DB during UPDATING user (meta) data to avoid doubling emails?

    #30026
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Can you please share some screenshots and the URL of the page that has the email field? I will help you to check this issue.

    Or you can use the jQuery Validation to validate the email field https://docs.metabox.io/validation/#validation-with-jquery-validation-plugin

    If you use the default field user_email, it has the default validation of WordPress to check if the email exists. If you want to check the email value of another custom field, please try to use the remote setting of Validation. Refer to this topic https://support.metabox.io/topic/remote-validation-example/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.