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


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?

  • 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.