New to Joomla 5 days old and creating forms with this excellent componet .I'm using joomla 1.5.10 and the last download of chrono forms V3.1 RC3 .
I have created a form using the wizard, eg name, email, address etc, I have placed validation on the fields. Problem is that when I enter the name and tab onto the next field , email the validation text displays before you have a chance to enter any information. I'm I missing something, i thought that validation only kicks in after leaving the field not entering . Is their a way to fix this. I'm new to this and just getting my head around basic css. I looked through but could not see anything related.
Many thanks
Sijo
I have created a form using the wizard, eg name, email, address etc, I have placed validation on the fields. Problem is that when I enter the name and tab onto the next field , email the validation text displays before you have a chance to enter any information. I'm I missing something, i thought that validation only kicks in after leaving the field not entering . Is their a way to fix this. I'm new to this and just getting my head around basic css. I looked through but could not see anything related.
Many thanks
Sijo
Hi Sijo,
The current ChronoForms release is RC4.11 and Max changed the validation library completely (it still has the same interface but is different behind the scenes). I suggest that you upgrade and see if the problem is still there.
I haven't seen the validation triggered onFocus before - maybe that's a glitch in one release?
Bob
The current ChronoForms release is RC4.11 and Max changed the validation library completely (it still has the same interface but is different behind the scenes). I suggest that you upgrade and see if the problem is still there.
I haven't seen the validation triggered onFocus before - maybe that's a glitch in one release?
Bob
Hi siko,
Ok - your post said RC3. Looks like there may be a bug. I don't know my way round the new validation code yet, Max may be quicker to find out what's happening.
Bob
Ok - your post said RC3. Looks like there may be a bug. I don't know my way round the new validation code yet, Max may be quicker to find out what's happening.
Bob
Sorry about the confusion regarding the version, I would appreciate any help you can provide.
Thank you for your time.
Thank you for your time.
Hi siko,
We've had two or three messages about validation problems with the new library. Max is much more familiar with this than I am and hopefully will be able to find the remaining bugs.
Bob
We've had two or three messages about validation problems with the new library. Max is much more familiar with this than I am and hopefully will be able to find the remaining bugs.
Bob
Sorry to ask again but has Max had a chance to look into this problem as I need to put the site live before the end of the week. I appreciate your time and help on this matter.
Hi sijo,
I don't think this is a bug, it just tells the user what he/she should have, in the next release I will make a switch so it fires at the field enter or the submit event!
Cheers
Max
I don't think this is a bug, it just tells the user what he/she should have, in the next release I will make a switch so it fires at the field enter or the submit event!
Cheers
Max
Hi sijo,
The new validation works 'as you type', I guess this is a problem with an email which is motly invalid until it's complete.
Bob
The new validation works 'as you type', I guess this is a problem with an email which is motly invalid until it's complete.
Bob
Oh, thanks for looking in the problem - as I am sure you may agree having a validation message as soon as you enter the field is not really the look we are aiming for. I have been impressed with your product but will obviously have to find an alternative.
Thanks Guys anyway for your time and effort.
Thanks Guys anyway for your time and effort.
Hi sijo,
Just in case you missed it Max did say that he would switch this to onSubmit or onChange in the next release. The LiveVlidation library is new to ChronoForms in RC 4.11 and there a still a few bugs to work out- if you check the LiveValidation site you will find exactly the same behaviour :-(
Bob
Just in case you missed it Max did say that he would switch this to onSubmit or onChange in the next release. The LiveVlidation library is new to ChronoForms in RC 4.11 and there a still a few bugs to work out- if you check the LiveValidation site you will find exactly the same behaviour :-(
Bob
Hi Sijo, if you didn't already uninstalled Chronoforms then let me know and I will show you a quick fix!
Cheers
Max
Cheers
Max
Hi admin,
I have read the whole post becasuse i have the same problem.
Can you tell me the fix, please??
thanks in advance and keep the good work
I have read the whole post becasuse i have the same problem.
Can you tell me the fix, please??
thanks in advance and keep the good work
Hi Max, no I have no uninstalled it as I do not really want to as I like the product. If you are able to show me the "quick fix" then that would be great.
Look forward to hearing from you.
Simon (sijo)
Look forward to hearing from you.
Simon (sijo)
Hi Simon,
I think this is it: Open components/com_chronocontact/libraries/inlcudes/JSvalidation2.php and look for this on line 12:
Bob
PS Although this is a php file it looks more like a javascript file and won't open in my usual editor unless I rename it as .js
I think this is it: Open components/com_chronocontact/libraries/inlcudes/JSvalidation2.php and look for this on line 12:
eval("var cfvalidate_"+field.getProperty('name').replace('[]', '')+" = new LiveValidation(field, { validMessage: ' ' });");and add a new optioneval("var cfvalidate_"+field.getProperty('name').replace('[]', '')+" = new LiveValidation(field, { validMessage: ' ', onlyOnBlur: true });");This switches the validations to the blur event when the input loses focus (you could also use onlyOnSubmit).Bob
PS Although this is a php file it looks more like a javascript file and won't open in my usual editor unless I rename it as .js
Hi,
First of all thanks a lot for the fix.
But it still don´t work with mandatory textareas, can i fix this some way?
Thanks a lot again
First of all thanks a lot for the fix.
But it still don´t work with mandatory textareas, can i fix this some way?
Thanks a lot again
This topic is locked and no more replies can be posted.
