[Resuelto] Storing Address Components in Separate Custom Fields
This support ticket is created hace 3 años, 5 meses. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.
Sun
Mon
Tue
Wed
Thu
Fri
Sat
-
7:00 – 14:00
7:00 – 14:00
7:00 – 14:00
7:00 – 14:00
7:00 – 14:00
-
-
15:00 – 16:00
15:00 – 16:00
15:00 – 16:00
15:00 – 16:00
15:00 – 16:00
-
Supporter timezone: Europe/London (GMT+00:00)
Este tema contiene 4 respuestas, tiene 2 mensajes.
I'm trying to use Javascript to take the separate address components from the Google Address field and store them as custom fields. For example I would be able to get the City, Postal Code, State, Country, etc.
I watched your video, and see that you are doing this with a front-end form (the original thread was aimed at back-end post edit screens), and you seem to be most of the way there, inasmuch as you have populated fields in that front-end form with details from the geocoding result.
If those values don't seem to have been saved (when you check the back end) after submitting the form, it sounds like you maybe added generic fields to your front-end form rather than the custom fields themselves (you must have registered some custom fields if I can see them in the back end in the video). In that case, the generic fields would be discarded after submitting the form.