Support

Account

Home Forums Add-ons Repeater Field Dynamically set limit for repeater rows

Unread

Dynamically set limit for repeater rows

  • Hi there…
    I am working on a list of activities for which users should sign up. For this I am using acf_form(), to display the form on the frontend.
    For each activity there is a desired number of persons.
    For the data of each person I am using a repeater to store name and email. So far, OK

    For instance:
    Activity A – requires 2 persons… So, if one person signs up, the next time someone is trying to sign up, there should be only one repeater row allowed to be created…

    I am currently doing the calculation “on the go” in the template to show/hide the acf_form based on this, but I would love to actually validate it the right way dynamically changing the maximum number of repeater rows allowed

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.