Forums

validate confirmation red > green > red

code.omnigraf 30 Sep, 2010
hi, i have those 2 fields:

<div class="form_item">
  <div class="form_element cf_password">
    <label class="cf_label" style="width: 150px;">Password</label>
    <input class="cf_inputbox required" maxlength="150" size="30" title="" id="text_5" name="pass" type="password" />
    
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_password">
    <label class="cf_label" style="width: 150px;">Verifica Password</label>
    <input class="cf_inputbox " maxlength="150" size="30" title="" id="text_3" name="pass2" type="password" />
    
  </div>
  <div class="cfclear"> </div>
</div>


in the validation tab i set pass=pass2, and everything should be ok, but i noticed that when i wrote a wrong password, it immediately turns red and the DIV error appears, but when i change field, and the confirmation's field loses focus, the field turns green and the DIV error disappears, looking like all it's ok, while the passwords are not matched.

And when i submit the form, the field border turns red and the DIV error is showing again, as expected.

Is this a known bug or is just in my form the fact that when the second password field loses focus it looks like validated?
GreyHead 30 Sep, 2010
Hi code.omnigraf,

Not heard that mentioned before. I can see that it is happening but I'm not sure why. I had a quick dig into the LiveValidation code and it looks as though the pass2 field is being validated twice, once as invalid and then immediately as Valid.

A bit odd. I'm really not sure if there is anything practical to do about it without a lot of bug-hunting in the JavaScript.

Bob
code.omnigraf 30 Sep, 2010
Hi bob, so that's a chronoform bug and not related to my site?

as a quick fix without lots of bug hunting in JS u could deny any other validation within 1 sec from the first one only on the validation-confirm fields with a timer

i havent watched how is done the livevalidation code yet, but is what i said possible?
GreyHead 30 Sep, 2010
Hi code.omnigraf ,

Looks like it may be a LiveValidation bug.

I'm afraid that I've no idea if you can delay it like that. I tried the "Waiting time" setting in the Validation tab and that didn't seem to help. You might find something on the LiveValidation site.

Bob
code.omnigraf 05 Oct, 2010
livevalidation doesnt have a support forum or anything :?
GreyHead 06 Oct, 2010
Hi code.omnigraf,

There's a contact form for Alec Hill there - might be worth a try.

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