Validation when editing a profile not working

This topic contains 3 replies, has 2 voices, and was last updated by Avatar Pie Register 4 years, 10 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #10002893
    Avatar
    Rasmus Wollesen
    Participant

    Title pretty much says it all.
    I have a field which allows 8 digits. Works great when creating the profile but does not do jack when editing the profile.
    I am not getting any JS errors in my console, så wondering if the script is loaded at all?

    #10002894
    Avatar
    Rasmus Wollesen
    Participant

    Okay, it would seem the validation class that the JS works with is typed in wrong?
    In the sign up form where it works, the validation class is piereg_validation
    and in the edit form it is just validation.
    Changing this makes the validation work again.

    Next problem is that all the rules does not propagate, as the limit on chars validation is not in the edit form.

    #10002895
    Avatar
    Rasmus Wollesen
    Participant

    Found that classes/edit_form.php was missing

    `if(isset($this->field[‘length’]) && intval($this->field[‘length’]) > 0 )
    {
    $val[] = “maxSize[“.intval($this->field[‘length’]).”]”;
    }`

    on line 660

    #10002896
    Avatar
    Pie Register
    Participant

    Hello,

    Thank you for digging it up, we will add this in our next releases!

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘Pie-Register 2.0 Support’ is closed to new topics and replies.