Forums

Password Length - Minimum Length (JS Client Validation)

hellykun 08 Apr, 2014
Hello Everyone,

I am trying to do a password length check by usign the JS Client Validation. My field is named password and I have checked it as required.

I add a JS Client Validation to my form and then I insert
password:8
in the field minimum length.
As it appears there is no action taken.
The debugger show no errors.

Am I doing something wrong?

Thanks a lot in advance.
Max_admin 09 Apr, 2014
Hi hellykun,

The JS Client validtaion action in v5 has some bugs and will be fixed in the new release, for now its better to remove it and use the "Custom function" under the validation tab in your field settings, and just write a function to do the validation for you!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
erix 11 Jun, 2014
Hello Max,


The JS Client validtaion action in v5 has some bugs and will be fixed in the new release, for now its better to remove it and use the "Custom function" under the validation tab in your field settings, and just write a function to do the validation for you!



I tryed this on a textfield but it doesn't work, here is the snapshot :

[attachment=0]2014-06-11_18h50_15.png[/attachment]

and here is the code for this field :

<div class="gcore-line-tr gcore-form-row" id="ftr-text6"><div class="gcore-line-td" id="ftd-text6"><label for="text6" class="gcore-label-left">Code postal</label>
<div class="gcore-display-table gcore-input" id="fin-text6"><input name="text6" id="text6" value="" placeholder="" maxlength="" size="15" class=" validate['required']" title="" style="" data-inputmask="" data-load-state="" data-tooltip="" type="text" /><label class="gcore-sub-label">Exemple : 75001, 47000,...</label></div>


Where is my error ?
Thx for answers

PS: J! 3.3.0, CF 5.0 RC6
erix 11 Jun, 2014
Answer
ok found the solution here : http://www.chronoengine.com/faqs/54-cfv4/cfv4-validation/2656-how-can-i-add-a-custom-client-side-validation.html
This topic is locked and no more replies can be posted.