Forums

No check of requiered fields

netwa 22 Aug, 2011
Hi,
ChronoForms doesn't check for requiered fields, but captcha check works.
I've got a form with multiple fields. Three fields are to check. Two of it are simple textfields and on is an emailfield. "Required" is checked on each field.
Any ideas?
Cheers
GreyHead 22 Aug, 2011
Hi netwa,

It sounds as if there may be a JavaScript error on the page that stops the validation running.

Please post a link to the form so I can take a quick look.

Bob
gigi 23 Aug, 2011
I have this same problem. I am a bit in the dark as the previous versions have obviously done it all for me and work. I have even paid for the book but as it is the old version, never mind, I will learn something, I knew that.
I understand and have read most about the validation and understand how the server side and client side work, no probs. Do I need to put code in somewhere??
a couple of forms here at <!-- w --><a class="postlink" href="http://www.themarbleman.com.au">www.themarbleman.com.au</a><!-- w -->

thanks
GreyHead 23 Aug, 2011
Hi gigi,

Your template (or some other components) is loading three different versions of the jQuery JavaScript library. Out of the box jQuery isn't compatible with the MooTools library used by Joomla! and ChronoForms. You can use jQuery with MooTools in no-conflict mode. There are various ways of doing this. The simplest is to add a line of script in the ChronoForms Form JavaScript box:
jQuery.noConflict();
This will free the $ operator which is used by MooTools, so you may need to update your own javascripts to use the longer jQuery operator.

There is also a neat Joomla! 1.5 system plugin named SC jQuery that allows you to control on which pages jQuery is loaded, and will always load it in no-conflict mode.

Bob
GreyHead 23 Aug, 2011
Hi netwa,

You have added the noConflict() code but it's trying to run before JQuery is loaded so the noConflict() code is causing an error.

Bob
netwa 23 Aug, 2011
I added it to try it, but doen's work without the code too. I have removed it, but same problem.
netwa 24 Aug, 2011
Is there a solution? Can I debug ChronoForms?
gigi 25 Aug, 2011
Thanks Greyhead, sorry about the double post, I was a bit lost with the posting for a minute and didn't mean to do that. I will try the NO CONFLICT - thanks BUT ON THE OTHER I AM RUNNING joomla 1.6 not 1.5 - is there something you for 1.6 to help with the jquery? If I can get this working I WILL "buy you a beer".
gigi 25 Aug, 2011
I tried the code - no conflict - as you said but NO, I can fill in the form with nothing and send it, nothing is being required and yet I have checked all the fields are setup even with alpha, email etc attributes?? Please help. I love using chronoforms and have been for a couple of years and bought about 9 validations, but I am worried I might have to find something else if I can't fix this - I know it may be from the other javascript but can you help. THANKS
GreyHead 25 Aug, 2011
Hi gigi and netwa,

This is not a ChronoForms problem and no amount of debugging ChronoForms will fix it. It is a problem with your site template and/or other extensions that are loading the JQuery library without putting it into noConflict mode. It's made worse by poor coding in Joomla! that makes it difficult to control the order in which script files are loaded.

Please check this helpful article from the Kunena Wiki for more information. In most places you can read 'ChronoForms' where the article says Kunena.

Bob
netwa 25 Aug, 2011
Thx Bob. I checked noconflict once more and now it works🙂
GreyHead 25 Aug, 2011
Hi netwa,

Great, thanks for letting us know :-)

Bob
gigi 26 Aug, 2011
Thanks Bob. I did stupidly laod a slideshow because of client request to try something - on one page - and I have a javascript conflict error. I have since completely removed this but have some others I know may be a problem - before I go any further, in your opinion, I guess I need to uninstall these and not just "unpublish" them and see how that goes?? Would this be your first port of call. I have read the link about the conflicts, only this seems to refer to 1.5 installations and I am using lastest 1.6 version. Thanks for your help.
gigi 26 Aug, 2011
SUCCESS! Well I checked on some of the plugins that were enable to see if DISABLING made a difference! VOILA! ALL IS WORKING for the required fields. It was System JB Library FYI - a module called captify content runs with this but also seems to run without!
Thanks for your help.
gigi 26 Aug, 2011
Jumped the gun a bit! ALMOST - Works great in Firefox but ALAS Internet Explorer - nothing required? Any thoughts on that. I have pretty much the latest IE - need to double check - but since I upgraded by IE - boy there are some bugs in it!! Any info would be appreciated.
GreyHead 26 Aug, 2011
Hi gigi,

It's a bit odd. The problem only seems to show up in IE9, IE8 is OK; and only on first loading the form. If you submit the form in IE9 with no data you get an error message shown and the validation then works. I don't see any error messages or anything else to exaplain why this is happening :-(

Bob
gigi 29 Aug, 2011
thanks Bob. yes, IE 9 is pretty crazy! I think I'll just ride it out! What else can I do!
thanks again
This topic is locked and no more replies can be posted.