Forums

ASSV fails after validation of first field

kmaccara 10 Apr, 2012
ChronoForms V4 / Joomla 2.5.4 / PHP 5.2.17

I am building a job application form and noticed that the ASSV action works nicely up to a certain point. If you build your form in stages, I've noticed that not all fields listed in the ASSV action get evaluated as listed.

Example form:

- create a simple form with 4 textbox items named: one, two, three, four and a submit button
- do not save in between!
- add ShowHTML to the load event
- add ASSV action to the submit event and require one,two,three,four and place an event loop in the on error
- add Show Thanks Message action to the submit event
- save the form

submit the empty form and you'll notice that the thanks messages is shown with no error.

Now modify the text boxes in the form and call them name,email,subject, and four.
- do not save in between!
- Edit the ASSV action and require name,email,subject,four
- save the form

submit the empty form and you'll notice that the form now has errors as expected for name,email,subject ... but not four!

Now modify the text boxes in the form and call them name,email,subject,and one.
- do not save in between!
- Edit the ASSV action and require name,email,subject,one
- save the form

submit the empty form and you'll notice that the form now has only one error for the textbox called 'one'. The textboxes for name,email,subject are no longer validated for being required.

Similar problems arise even when you do not edit the form structure or names itself.
- Do not modify the form structure or names
- Edit the ASSV action and require one
- save the form

submit the empty form and you'll get the thanks-message because one is no longer being validated.

- Edit the ASSV action and require name,email,subject,one
- save the form

submit the empty form and you'll get the thanks-message because none of the previously listed items is being validated.


I can provide much more detail, if desired. Also, when I run Joomla! in developer mode, ChronoForms v4 does produce several PHP error messages, which can be provided if desired as well.
Max_admin 11 Apr, 2012
Hi kmaccara,

Please send me a backup for this form through the "Contact us" page.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
kmaccara 12 Apr, 2012
Hi Max,

I believe this turned out to be a case of cached query parameters by my browser when resubmitting the form. I have re-tested and my example is now working as I would expect. I forgot to re-post yesterday when I found the problem after tracing through my posted data.

It was careless of me to have not checked the posted data before it was processed by Chronoforms! I hope you didn't spend much, if any, time looking at this!
Kori
This topic is locked and no more replies can be posted.