Validation when editing a profile not working

Home Forums Pie-Register 2.0 Support Validation when editing a profile not working

This topic contains 3 replies, has 2 voices, and was last updated by  PIE REGISTER 3 years, 7 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2893

    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?

    #2894

    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.

    #2895

    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

    #2896

    PIE REGISTER
    Keymaster

    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)

You must be logged in to reply to this topic.