Support

Account

Home Forums ACF PRO Repopulate & change on ACF frontend form's Select2 Reply To: Repopulate & change on ACF frontend form's Select2

  • In the end I found the ‘data’ argument of select2 method.
    So i did this:

    $acf_row.find(‘[data-name=”sq_solution_features”] input[type=”hidden”]’).select2(‘data’, new_select2_data);

    new_select2_data should be array of objects {id: id, name: name}

    And it seems to work and persist through form submits.