Bug - Validation is triggered even though the field is hidden by Conditional Log

Support General Bug - Validation is triggered even though the field is hidden by Conditional Log

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #50103
    TomTom
    Participant

    I have some rating fields (like feature, value, customer service, etc) in a field group that use range field type. Depending on the taxonomy assigned, certain range fields are visible while others are not. This uses Meta Box built in conditional logic.

    For all range fields the limit min is 0 and the max is 5, the step is 0.25 and the default is 0. This allows the slider to go from 0 to 5.

    Some rating fields are not required. If their rating is left at 0 then this is considered a "no rating" and the rating average calculation ignores the field.

    Some rating fields are required. A required field is set to required and Under Validation I add a rule for Min Value of 0.25.

    Since the Ratings default to 0 this requires the user to select a rating on the slider (instead of leaving it at the default). If it is rating that is not required then they can leave it at 0 if they wish.

    The problem I have is that Meta Box does not allow the CPT to save. It looks like fields that are hidden by Meta Box Conditional logic and that are required and have under Validation a Min Value set above the default triggers an error message for the user "Please correct the errors highlighted below and try again.".

    The field is hidden so the validation should not apply. Meta Box Javascript ignores other requirements when fields are hidden so it should ignore this as well.

    #50104
    PeterPeter
    Moderator

    Hello Tom,

    Thank you for your feedback.

    I could reproduce the issue easily with your information. I've escalated the issue to the development team to fix it in the next update of MB Conditional Logic plugin.

    #50105
    TomTom
    Participant

    Okay, great! I tried to explain it as detailed as possible for you to be able to reproduce it.

    Thanks

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.