Forums

Chronoforms 4 rc3.21 validate fields problem ie8/ie9

veliero 22 Mar, 2012
Hello everyone,
I created a form that does not feel the validation of fields with IE8 and IE9.
The sending occurs when there is no control on the fields.

The settings I have set are:
js validation - active
name + surname = required field

EVENTS are
on-load: load css-load js - loadHTML
on-submit: dbsave - email - thanks message

My joomla version is 1.7.2
mootools version 1.3.2.
ChronoForms components: v4 rc 3.21
ChronoForms module: v4 rc 3.0
ChronoForms plugin: 3.0 rc v4

I tried to send data by disabling all styles css template but the form does not check for required fields.

Can anyone help me please?
Thanks in advance!πŸ™‚
GreyHead 22 Mar, 2012
Hi veliero ,

I can confirm that the validation works with IE9 in IE7 browser mode but not in IE8 or IR9 browser mode.

But I can see no errors or any obvious reason why it is failing :-(

Bob
veliero 22 Mar, 2012
Thanks Mr. Bob
I have seen evidence that you did thanks.
I read here on the forum that might be caused by conflicts between mootools and jquery but I guess you'll have seen that there are no conflicts between the two. (so I'm wondering if it is useful upgrade joomla to version 2.5 which has seen the new mootools? are not very expert in the field)
I will give you some ideas and insights that I hope will be collected to help resolve the issue:

- Maybe it depends on the database fields associated with a field required? (What checks should I do?)

- I published the Debugger ChronoForms on-load and these are the results ... seem to be searched or passed an empty array.
By activating the debugger is the only way to take control then prevents further until they are properly completed all required fields.
Result on-load:

Array Data:
array
(
[Itemid] => 110
[option] => com_content
[view] => article
[id] => 14
)

Validation Errors:

array
(
)


- I tried using a server side validation, but the problem does not solved



thanks in advance
veliero 23 Mar, 2012
Someone can help me?😟
GreyHead 23 Mar, 2012
Hi veliero,

The Debug results look Ok - but they won't tell you much about problems in the browser.

Here's what you do.

Create a minimal form with just one text input and a submit button, make the input required.

Check if that works in IE8 and IE9 (we do know that there are some problems with IE9 and the MooTools libraries but IE8, or IE9 in IE8 browser mode, should be OK).

If there is still a problem add &tmpl=component to the URL and re-check. If that works then you know that the problem is with some part of the template.

Test with a standard Joomla! template, if that fixes the problem - as it probably will - then go to your template designer and ask them for their suggestions.

If that doesn't work then disable all other modules and plug-ins until you track down the source of the problem.

Bob
veliero 24 Mar, 2012
Thank you mr. BOB of the many recommendations.
Excellent observations, unfortunately js validation does not seem to work.
Luckily I managed to solve with the help of a person: I added a server-side form validation on submit-and intra-I added an event-loop on-fail. In this way, validation is all server side and browser-independent. Thus I resolved with server side validation.
the reason why the validation js has not worked remains a mystery.

All well that ends well.

ThanksπŸ˜€
GreyHead 24 Mar, 2012
Hi veliero ,

Good solution :-)

Bob
This topic is locked and no more replies can be posted.