Home Forums Backend Issues (wp-admin) gmap field Reply To: gmap field

  • Hi @kaiser

    You can either write some jQuery to copy / paste the ACF val into the ‘lat/lng’ text box, or hook into the acf/update_value filter and run some custom PHP to save the data into the DB manually.

    It probably easier to use jQuery. You can use the $(document).ready() function to add some functionality to look at the ‘lat/lng’ value, and copy / paste across the ACF value.

    You can also listen to a change on the ‘ACF field’ and copy across the new val.

    So, jump on google and look into the document ready and ‘.on(‘change’)’ events