Support

Account

Home Forums Backend Issues (wp-admin) Select in repeater – Prevent user from selecting the same option twice Reply To: Select in repeater – Prevent user from selecting the same option twice

  • 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