min_clone - ability to set the required minimum number of clones.

Support MB Group min_clone - ability to set the required minimum number of clones.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #31142
    pluginovenpluginoven
    Participant

    There is a max_clone attribute for the MB Groups:

    max_clone => Limit the number of clones. Integer. Must be greater than 2. Optional.

    But there is no min_clone attribute. Is there any way to require a minimum number of cloned entries, maybe by using one of the JQuery Validation methods?

    #31145
    Long NguyenLong Nguyen
    Moderator

    Hi,

    There is no setting to set the minimum number of clones for a field. I will inform the development team to explore the possibility.

    #31880
    pluginovenpluginoven
    Participant

    Pull request just submitted to github:
    https://github.com/wpmetabox/meta-box/pull/1416

    This will add the ability to set clone_min attribute that is used as the minimum list value to toggle the remove-clone buttons. If no min_clone value is set, it defaults to 1 as it always has.

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