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
Thanks
E
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.