Skip Navigation

[Resolved] Invalid email error in custom field when the email is correct

This thread is resolved. Here is a description of the problem and solution.

Problem:
The user has a user form that does not accept valid email such as gmail addresses.

Solution:
It turns out that some custom Javascript code is refusing emails from some free email services. Check this screenshot http://prntscr.com/wo7m96

This support ticket is created 3 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 16 replies, has 3 voices.

Last updated by himanshuS 3 years, 10 months ago.

Assisted by: Jamal.

Author
Posts
#1889947
email.png
custom field setting.png
second form.png
wordk fine on second form.png
first form.png

I have email as a custom field and assigned to a CPT.

On form submit I get an error -invalid email. This error is different from the error message defined on the custom field. I use this field in two forms but only one form has the error.

What am I missing?

#1890479

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

That is really strange. Can you please share problem URL where you added the form as well as access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#1891579

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Thank you for sharing access details. I would like to know, do you see the issue if you deactivate all Third-party plugins as well as with default theme?

#1891607

Minesh,

This does not seem like a plugin issues as I am using the same custom field in a different form and it works just fine without error.

Page: hidden link
Form link: hidden link

#1893931

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I will resume work here once you address the wp-admin access issue, as when I try to access wp-admin, it redirect me to wordpress.com.

#1894049

It should work now. Please check.

#1898771

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

It seems you removed the email field - do you still need any help here?

I checked the following link you shared but it redirect back to the home page. Did you removed the page?
=> hidden link

#1898881

Minesh,

You have to login to access the page. The issue still exists. The field name is - endorser email'.

#1901197

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

It seems you have made the changes to the form: hidden link

I've tried to submit the form by just excluding the field Skill Categories where I did not selected any categories and with the email field i've added my email and then submit the form and I do not see the email error.

Do you still see the error? If yes, could you please share the steps that I should lead me to see the error.

#1901327

Steps:
1) Go to hidden link
2) Go to endorser email field
3) Enter a valid email in the field
4) Click tab to leave the field.
5) Invalid email error shows up on the endorser-email field.

Video link: hidden link

#1903405

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I'm not sure whats going on but when I visit the URL: hidden link

I do not see any form now even when I'm loggedin.

#1903427

Site is down. Conflict with a plugin. I will get back to you when it is up and running.

#1904659

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Ok - let me know once its working.

#1904685

Site is up

#1906257

Minesh is not available for a couple of days. If you don't mind, I'll continue with you on this ticket.

From the first sight to the page's source code, it seems that you are using some custom Javascript code, probably, in an Elementor widget to validate the email field. The code seems to refuse free email services such as Gmail. Check this screenshot hidden link
In fact, if you try with another email such as my professional one jamal.b(at)onthegosystems.com the validation completes successfully.

I am sure that this issue will not appear on a new page that uses this form without any Elementor elements.

I hope this helps. Let me know if you have any questions.