Hey there!
I have a “Select” in a Repeater field and I’d like to prevent the user from selecting the same value twice. Any recommendations on how I go about doing this?
Hi @sirjonathan
I would use a simple jQuery approach to loop through all the select fields, and then apply a disabled attribute to it’s options where the option value has already been selected.
You can use the acf/setup_fields JS hook to fire your code:
http://www.advancedcustomfields.com/resources/tutorials/adding-custom-javascript-jquery-for-fields/
Thanks
E