Posted: May 14, 2015 at 12:06 pm
|
Hello, the form validation do not work on my site , I can register without filling up fields… would you have a idea of what can be the problem? I did try many things, read lots of support post but no luck. Thank you ! |
Hey Jean, I’m sorry to hear about this. Are you on the latest version of EE? Is this occurring in EE3 or EE4? Can you try to rule out any plugin conflicts. Deactivate all non Event Espresso plugins and test to see if the issue is still occurring. If it is not, then we know it is a problem with another plugin. You can then find out which plugin it is by reactivating each plugin individually and testing to see if the problem starts happening after the activation. When it occurs after activating a plugin, then we know this is the culprit. |
|
|
Hi Jonathan, Just try to deactivate everything except EE 3 but the problem still there. here is my site link: http://salondachat.regitan.com |
Hi Jean, There seems to be an issue with the eejecking.js script you have in your wp-uploads/espresso/ directory. Can you please remove that script and see if the issue is resolved? |
|
|
I removed the eecheckin.js but the problem still there. |
|
Got it to work! I did put some code in validate.js to customize the validation and this was causing my problem. not sure if it’s a good thing to edit validate.js to customize validation, how can I customize correctly the from validation? |
Hi Jean-Francois, This works for me in Safari: http://cl.ly/image/000s0u3I3h2g What web browser are you having trouble with? — |
|
|
Thanks Orlando! I got it to work, probably just before you try. I tried to modify the validate.js file to customize the validation and this was causing my problem now it’s all good. but I still want to customize the validation, what is the best way to do it ? |
Hi, the validation itself is part of the core plugin. What changes are you trying to make to your site? — |
|
|
We want to validate our customer number in the customer number field. Basically I want it in a specific format XXXXXX-XXX and then I go query a table to validate if this customer number exist if not exist the registration cannot finish. |
|
Hi Jean-Francois, For this you will need to include some sort of custom plugin, one that either uses JavaScript/jQuery and AJAX to validate on the page, or one to that hooks into the registration form submission. Personally I would suggest the JavaScript route, as it will occur before submission even happens. The validation we use is fairly basic and revolves around standard validation of things like dates, postal codes etc. As you need something more specific to your particular use case, having it separate would be better. Also, the only way to modify the EE validation is to change core files, which as your recent experience shows, does not always end well. Plus those changes would need to be re-done every time you update, whereas a separate plugin would not have that issue. We have a list of recommended developers should you need assistance with creating the custom validation: https://eventespresso.com/developers/event-espresso-pros/ |
|
Thank you Dean for the info but if I want to do it my self what file should I modify? I’m comfortable whit JavaScript but i need to know what should I edit. Thank you ! |
Hello, one way to handle this would be to load some new validation on the site and then have it target a specific form field. Here is an example for Event Espresso 4 that adds email validation (fixes common typos): https://gist.github.com/lorenzocaum/e39ba6aa9ec60a59fc93 — |
|
The support post ‘Validation not working’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.