Support

Account

Home Forums Add-ons Repeater Field Fixing Number Of Repeater Rows With Dropdown? Reply To: Fixing Number Of Repeater Rows With Dropdown?

  • Hi @Peter Willis

    I would write some JS code to listen for a change on the select field, and then trigger a click on the repeater field’s ‘add new row’ button x amount of times.

    Then, you can set the data-min and data-max attributes on the repeater field element for ACF to handle the min / max validation.

    Please use firebug to see these attributes clearly.

    Thanks
    E