[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.
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.
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.
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?
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.
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.
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.