Verifying E-mail Match

Javier Valdivieso created the topic: Verifying E-mail Match

Hello WebDorado,

I've been trying to get my form verify that the e-mail addresses entered by the user in two separate fields match each other. I've tried different approaches to no avail. Below is how the form currently stands; allowing two different email addresses to go through.

Form ID: 12
E-mail field: wdform_3_elementform_id_temp
Verify E-mail field: wdform_13_elementform_id_temp
Attribute on Verify E-mail field: onmouseout emailCheck()

JavaScript:

function emailCheck(){
Email1 = new E-mail (document.getElementById("3_elementform_12").value);
Email2 = new E-mail (document.getElementById("13_elementform_12").value);
if(Email1 != Email2){
{
alert ("Mistake, Check your inputs");
}
}

Can you please help me implement this verification?

Thank you in advance!

#13988

Please Log in or Create an account to join the conversation.


Support replied the topic: Verifying E-mail Match

Dear Javier,

Can you please also provide us a link to your form page ?


Best regards,
Web-Dorado team


Joomla extensions ,
Wordpress plugins ,
Drupal modules
#14023

Please Log in or Create an account to join the conversation.


Javier Valdivieso replied the topic: Verifying E-mail Match

My bad; I should've provided you with more details.

staging.billvolkgolfclassic.ca/contact-us
(not on production yet)

Joomla 3.3
Form Maker for Joomla 3.x (paid)

Thanks again.

#14038

Please Log in or Create an account to join the conversation.


Support replied the topic: Verifying E-mail Match

Dear Javier,

First of all you should set emailCheck() for onblur instead of onmouseout.
Here is the right JavaScript code:
function emailCheck(){
Email1 = document.getElementById("wdform_3_element12").value;
Email2 = document.getElementById("wdform_13_element12").value;
if(Email1 != Email2){

alert ("Mistake, Check your inputs");
wdformjQuery("#form12").find(wdformjQuery(".button-submit")).attr("onclick","");
}
else
{
wdformjQuery("#form12").find(wdformjQuery(".button-submit")).attr("onclick","check_required12('submit', '12')");
}
}


Best regards,
Web-Dorado team


Joomla extensions ,
Wordpress plugins ,
Drupal modules
#14127

Please Log in or Create an account to join the conversation.


Javier Valdivieso replied the topic: Verifying E-mail Match

Thank you so much, guys. I just tested the form, and indeed it now enforces a match between the two email fields.

All the best!
Javier

#14140

Please Log in or Create an account to join the conversation.


Support replied the topic: Verifying E-mail Match

Dear Javier,

If you really appreciate our work, please find a couple of minutes to leave a review on Joomla Extensions Directory. Here is the link. extensions.joomla.org/extensions/contact...feedback/forms/22319


Best regards,
Web-Dorado team


Joomla extensions ,
Wordpress plugins ,
Drupal modules
#14150

Please Log in or Create an account to join the conversation.


Jay Jordan replied the topic: Verifying E-mail Match

I'm having this same issue of how to get the email addresses to verify. This all new to me, so I'm not sure how to make the form call the emailCheck() routine.

www.fcarobotics.com/fca-fll-qualifier/volunteer-sign-up/

#17676

Please Log in or Create an account to join the conversation.


Support replied the topic: Verifying E-mail Match

Dear Jay,

You should insert the same JavaScript code but instead of 12 your form id and your field id's instead of 3 and 13 .


Best regards,
Web-Dorado team


Joomla extensions ,
Wordpress plugins ,
Drupal modules
#17685

Please Log in or Create an account to join the conversation.


Jay Jordan replied the topic: Verifying E-mail Match

I inserted the java script code using my field values and form id. I still can't get it to work.

// Occurs just before submitting the form
function before_submit()
{
function emailCheck()
{

Email1 = document.getElementById("wdform_9_element10").value;
Email2 = document.getElementById("wdform_14_element10").value;
if(Email1 != Email2){

alert ("Email Addresses Do Not Match");
wdformjQuery("#form10").find(wdformjQuery(".button-submit")).attr("onclick","");
}
else
{
wdformjQuery("#form10").find(wdformjQuery(".button-submit")).attr("onclick","check_required10('submit', '10')");

}

}

}

#17709

Please Log in or Create an account to join the conversation.


Support replied the topic: Verifying E-mail Match

Dear Jay,

Have you deleted the second Email address field ? Can you please insert it again so as we can check ?


Best regards,
Web-Dorado team


Joomla extensions ,
Wordpress plugins ,
Drupal modules
#17715

Please Log in or Create an account to join the conversation.


Ellen McAlister replied the topic: Verifying E-mail Match

I have also been unable to get this code functioning.

Here is the dev url:http://www.eevil.org/bestway_dev/

Thanks for your help!

// Occurs just before submitting the form
function before_submit()
{
function emailCheck(){
Email1 = document.getElementById("wdform_4_element14").value;
Email2 = document.getElementById("wdform_5_element14").value;
if(Email1 != Email2){

alert ("Mistake, Check your inputs");
wdformjQuery("#form14").find(wdformjQuery(".button-submit")).attr("onclick","");
}
else
{
wdformjQuery("#form14").find(wdformjQuery(".button-submit")).attr("onclick","check_required14('submit', '14')");
}
}


}

#23310

Please Log in or Create an account to join the conversation.


Time to create page: 0.228 seconds
Powered by Kunena Forum

WORLD-CLASS SUPPORT

We are here for you every step of the way. Turn to our support with any questions you might have about our products and services. Our experienced customer care team is available to help you as fast as we possibly can.

Contact us