Hi.
I have an issue with the validation of one input field. The error message displays at the top of the page but not next to the element.
I first created the form using the wizard. Then i had to finish the form using custom code. The element which is not validating was added later. Do i need to add an error message div? i.e.
<div id="error-message-card_type"></div> I have tried this but still not working.
You help would be greatly appreciated.
Hi Glens,
You need to add the error message div where the error should appear, what's your field name ?
And do the errors show below other fields except this one ?
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi.
Sorry for the late reply. I have been away.
The field name was card_type and the error message div was <div id="error-message-card_type"></div>. Yes, all of the other fields were showing an error message next to the element.
Anyway, don't worry about this for now as I have bigger issues with the JS validation.
1. Only one of the fields validates at a time. For example, if i press the submit button, i get only one error message and that message is half-way off the screen. I have tried switching from "Tips" to "after element" and the message is in the correct place only the message is squashed on some checkbox elements.
2. The validation should be onsubmit & onblur. Again, this works only once. If you tab away from the input an error message is displayed if it is empty. If you tab away again, no error message is displayed.
I notice various other issues but i think they all relate to point 1.
Your help would be greatly appreciated as i am under pressure to get these forms working. Below is a link to the form.
EDIT: url removed
Thanks
Also, one thing that would be very useful is if i could validate each section when the user clicks on the "next" button.
Hi. Your assistance would be greatly appreciated.
Thanks
Hi Glens,
I suggest that you add 1 submit button below all sections (under the slider) and that should fire the validation and open the correct slider if there is some field invalidated (assuming you are using the Chronoforms sliders).
The errors display one by one, you can't show all of them at once, that would be even a problem with your multi section form!
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.