• Resolved RGZ

    (@daniel-garrido)


    Hi, congratulations for this fantastic plugin!

    I’m needing to validate a text field that must have at least N characters.

    While

    [text my-field minlength:5 placeholder "Some text"]

    works as expected, showing an error after submitting the form, the same expression doesn’t trigger any error on submittion if inside a field group:

    [field_group my-repeating-fields]
    [text my-field minlength:5 placeholder "Some text"]
    [/field_group]

    What could be wrong?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Felipe Elia

    (@felipeelia)

    Hi,

    I’m sorry but I could not reproduce the error. Please note that for Contact Form 7 min length and required fields are not the same.

    So, if you type “123” in both fields they will trigger an error. If you leave them empty, it won’t produce any error. If you do need at least 5 chars without the option of leaving it blank, make them required (using text* as field type).

    Let me know if I missed something or if you could fix the question, ok? Thanks!

    Plugin Author Felipe Elia

    (@felipeelia)

    As a couple of weeks has passed, I’m marking this as resolved. Thanks for using the plugin!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Minimum length field validation not working’ is closed to new replies.