Forums

Validation acts differently (JS vs Server Validation)

nwoswamp 09 Jan, 2015
Using the "Server Validation" On Submit event makes all fields required.

Here's a step-by-step:
Create new form. Give it a name like 'test'
In Designer, add 1 text box and 1 submit button.
Edit text box properties and in the Validation tab, set a property like 'email' to Yes.
In Setup, add HTML (Render) to On Load.
Save. Test form.
Leave the text box empty and click 'submit'. The form submits.

Edit the form. Edit text box properties and in the Validation tab, set the property to No.
In Setup, add Server Validation to On Submit.
Add Event Loop to Server Validation, On Fail.
Edit Server Validation and in email enter:

text1:email validation failed.


Save. Test form.
Leave the text box empty and click 'submit'. The form fails validation with "email validation failed".

I point this out because in Chronoforms 4 didn't operate this way and I want to validate forms on the server side (for those with JS blocking) without making all the form fields required.

Thanks!
nwoswamp 25 Jan, 2015
Bump. Is this confirmed, am I doing something wrong, or am I crazy? I'm getting very close to deploying the site.
Max_admin 27 Jan, 2015
Hi nwoswamp,

Just found this, will test it then get back to you!

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Max_admin 28 Jan, 2015
Answer
Hi nwoswamp,

Yes, this is a bug, a fix should be available in the next update!

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
nwoswamp 28 Jan, 2015
Hi Max,

Thanks for looking into this and for this great extension!
This topic is locked and no more replies can be posted.