Support

Account

Home Forums ACF PRO Google maps deletes value on populated data

Solving

Google maps deletes value on populated data

  • Hello,

    I have custom post type that is populated with a CSV file.
    In the chrome inspector I have the div.acf-google-map and inside I have a hidden field with the correct data:
    <input name="acf[field_5b0bcd26a5931][field_5b0ec846aa1a6][0][field_5b14eea0650b3][field_5b0bcce2a5930][address]" value="6690 Edwards Boulevard - Mississauga, ON, , Canada" data-name="address" type="hidden">
    But the input.search is empty is there solution to this ?

    Thanks
    pepe

  • The only workaround to fix this is modifying the core of ACF.

    File assets/js/acf-input.js
    Changing this :
    this.$search().val( val.address );
    for this:
    this.$search().val(this.$input.val());

    Is this a bug or am i missing something.

  • Any way to sollve this ? hte previews modification on the core doesn’t work wil multiple map on the same page.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Google maps deletes value on populated data’ is closed to new replies.