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.