GEO my WP Support

Use this forum for technical support and general questions related to GEO my WP plugin and its core add-ons only. For technical support and general questions related to any of the premium extensions please open a new premium support ticket.

[Not resolved]How to set a default lat/long from previous entry

Forums Support How to set a default lat/long from previous entry

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #55232
    pianogreg
    Member

    I use a multi-page form.

    On page 1, I have a geocoder synced with an advanced address field.
    On page 4, I have a geocoder synced with a google map field.

    I want the google map to default to the location that was recorded on page 1.

    Can you explain how to do that?

    #55250

    Hello Greg,

    Try the script below ( added to the functions.php file of the theme ).

    1) You need to change the value “2” in $current != 2 to the number of the page with the target map.

    2) Change the value 1 in all the “input_1” to the geocoder ID which you pass the location from.

    3) Change the value 5 in $field->id == 5 and all the input_5 to the target geocoder ID.

    Let me know if that helps.

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

You must be logged in to reply to this topic.