Attribute minlength does not get rendered

Support MB Builder Attribute minlength does not get renderedResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #21316
    BucketPressBucketPress
    Participant

    Using Meta box builder, for a text input field, I added 2 custom attributes key values:
    - pattern => [A-za-z0-9]*
    - minlength => 8

    The metabox setting was set to be shown in 'Users'

    However, when viewing the field in a User profile page, the pattern attribute is rendered, but the minlength attribute is not rendered in the html.

    #21320
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Currently, the attribute minlength is not a common attribute, so you should use it in the array attributes().

    With the builder, you can use the dot notation https://docs.metabox.io/extensions/meta-box-builder/#dot-notation. See my screenshot https://share.getcloudapp.com/Jru6gdZL.

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