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