Page 1 of 1
Form Validation for Email Field
Posted: Thu May 08, 2025 3:10 am
by BazzaBoy
I am trying to validate the Email Field in my on-line form. Please see screenshots:
https://petertheapostle.org/forms/validate_email_1.jpg
https://petertheapostle.org/forms/validate_email_2.jpg
However, the validation does not seem to work and the form goes through unmonitored.
I don't know what I am doing wrong. I have searched for documentation on the same.
I am having the same issue with a phone number.
Can you please help me out?
Re: Form Validation for Email Field
Posted: Thu May 08, 2025 4:37 am
by AliGW
I think you need to set the MATCH field in the second dialog to match the first E-mail address field.
Re: Form Validation for Email Field
Posted: Thu May 08, 2025 5:58 am
by Pablo
How are you testing this?
What did you expect to happen?
Do you have a demo?
Can you please be more specific?

Re: Form Validation for Email Field
Posted: Thu May 08, 2025 6:53 am
by BazzaBoy
What happens is, even if the email field is left blank, the form still gets submitted.
What I expect it to do, is to warn me that the field is blank or that the email format is not correct.
I have the same problem with the phone number field and drop down lists. But let's sort out one category at a time.
Simple validation for other text fields works nicely.
Re: Form Validation for Email Field
Posted: Thu May 08, 2025 7:15 am
by Pablo
Please share a demo.
Re: Form Validation for Email Field
Posted: Thu May 08, 2025 7:34 am
by BazzaBoy
The form is quite long, but here we go:
https://petertheapostle.org/forms/baptism_request.php
It is currently delivering data to my email address, so don't worry about submitting it.
The last data I received was:
Values submitted from website form:
IP Address : 159.196.133.5
Date Of Baptism : 05/07/2025
Introduction :
Christian Name : x
Middle Name : x
Last Name : x
Date Of Birth : 2025-04-11
Place Of Birth : x
Child Gender : Male
Mother Name : y
Mother Religion : y
Mother Maiden Name : z
Father Name : z
Father Religion : z
Address : 123
Contact Number :
Contact Email :
Number Of Godparents :
Godparents Fulfil Conditions :
Godparent 1 Name :
Number Of Guests :
After the address field, it does not check anything. A few of them are drop down lists.
Re: Form Validation for Email Field
Posted: Thu May 08, 2025 7:42 am
by AliGW
Did you try my suggestion? Without the MATCH field set for the second E-mail field, I doubt it will work.
Re: Form Validation for Email Field
Posted: Thu May 08, 2025 7:45 am
by BazzaBoy
AliGW,
Thanks for your suggestion, but there is only one email field in the entire form (Contact Email). So, I am not sure what you are trying to convey.
I think you are talking about a scenario where you enter and re-enter an email address as in a sign-up form.
Regards,
Re: Form Validation for Email Field
Posted: Thu May 08, 2025 7:51 am
by AliGW
I think I misunderstood your requirement because of the names of the attachments!
Yes, I was talking about a second E-mail field that valiudates by checking against the first E-mail field.
Do as Pablo has asked and prepare and share a small demo file.
Re: Form Validation for Email Field
Posted: Thu May 08, 2025 8:55 am
by BazzaBoy
I prepared a small demo, and it worked just fine.
I have a feeling the cache on my Chrome is playing up.
I'll clear the cache and try again with a clean slate.
Sorry for any inconvenience.
But if it still doesn't work, I will let you know.
Re: Form Validation for Email Field
Posted: Thu May 08, 2025 8:59 am
by Pablo
To be able to help you, I need a DEMO project (.wbs file) so I can see all your settings.
I do not need the complete project because that will only take more time to figure out what you have done.
Basically, I just need a small project with one page and object(s) that are relevant to your question.
Note that I cannot see what you have done based on the published page (HTML), because the software has thousands of options and millions of possible combinations.
So, there is no way to know which options you have used by looking at the HTML only.
For further details about how to share a project file, please see this FAQ:
viewtopic.php?f=10&t=82134

Re: Form Validation for Email Field
Posted: Sat May 10, 2025 12:08 am
by BazzaBoy
Sorry for the wait.
I have uploaded a demo as per your instructions. It is located at:
http://petertheapostle.org/forms/webform.wbs
I have removed everything else except the necessary stuff.
I have got the email thing validating properly, and replaced the dropdown lists with simple text boxes. But I am facing other issues. They are:
- Number fields (phone number, number of godparents and number of guests) are not validating properly. I use validation as text (digits only). But it accepts and forwards anything that I type in there. I have also tried it with Number but same result.
- Child's Date of Birth is entered as dd/mm/yyyy, but the result received by email is in the format yyyy/mm/dd. Is there any way to format that calendar?
- Captcha entry field shows only 3 sides border. I have tried padding and margins for it to show the complete border, but with no success.
Thanks for your help.