Support

Account

Home Forums Add-ons Repeater Field Repeater select field with unique values

Helping

Repeater select field with unique values

  • I created a Select subfield inside a repeater.
    I’d like to prevent the user from submitting multiple values for the same option.
    For example:
    – User adds a repeater
    – Chooses “Option 1” on the Select subfield
    – Adds MyVal to Text subfield
    – User adds another repeater
    – “Option 1” should be disabled in the Select subfield

    Is that possible already in ACF? Am I missing some obvious feature?
    Thanks

  • No, this is not already available. You would either need to create an acf/validate_value filter for the sub field and check there to ensure each row is unique…. there are topics on here somewhere about doing this, sorry I don’t have links handy. Or you would need to create something using JavaScript.

Viewing 2 posts - 1 through 2 (of 2 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.