- This topic has 8 replies, 2 voices, and was last updated 3 years, 1 month ago by
Eyal Fitoussi.
-
AuthorPosts
-
February 21, 2019 at 5:46 am #58700
mishaLSE
MemberHello,
I successfully added a form that searches through all of the members on this site but now I’m at a roadblock. I need to have a map appear above the form with all of the locations of the members on it once this page loads.https://masterrugcleaner.net/member-directory/
How would I accomplish this?
February 22, 2019 at 12:54 pm #58724Eyal Fitoussi
MemberHi,
Please follow these steps:
1. navigate to the “Page Load Results” tab of form editor in the dashboard. Check the “Enable page load features” checkbox and in the “Display map” dropdown menu select “Using shortcode”. Then Set up the rest of the filters on this tab as you wish.
2. Navigate to the “Form Submission” tab and set the “Display map” dropdown to “Using shortcode” as well.
3. In the content of the page where you display the form use the shortcodes like the below ( replace 1 with the ID of your form ):
12[gmw map="1"][gmw form="1"]let me know if this helps.
February 25, 2019 at 4:30 am #58739mishaLSE
MemberThank you for your reply. Unfortunately, the map is still not showing up.
I checked the “Enable page load features” checkbox and updated the ‘Display Map’ dropdown
http://prnt.sc/mpvm16also updated the ‘Form Submission’ tab
http://prnt.sc/mpvmk4here is how I have the shortcode displayed:
http://prnt.sc/mpvoujAny other ideas? Any other pointers would be helpful.
February 25, 2019 at 2:40 pm #58751Eyal Fitoussi
MemberHave you checked the “Visitor’s current location filter” checkbox?
Can you please provide a screenshot of the entire Page Load Results tab?
February 26, 2019 at 5:50 am #58757mishaLSE
MemberYes, I checked that box. I attached the screenshot of the whole page.
Attachments:
You must be logged in to view attached files.March 5, 2019 at 10:52 am #58780mishaLSE
MemberHey Eyal,
Could you give me any more pointers for this?March 5, 2019 at 12:21 pm #58781Eyal Fitoussi
MemberHi,
I think the city filter option is the issue.
When adding an address to a post, GEO my WP geocodes it returns the location fields from Google API. And those location fields will be saved in the database.
So if you enter the address “5310 W 23rd St, St Louis Park, MN 55416, USA” for example, the city field that returns from Google and saved in GEO my WP database might be “Saint Luis Park” instead of “St. Luis Parks”. And because the city filter will search for the exact term ( St. Luis Parks ) in the database, you will not get results.
Remove the city filter from the page load results and try again.
And since you are using the address filter to search nearby by location, you should also remove the zip code, state, and country filters. Those filters the results by the exact term, rather than by proximity, like the address filter.
March 6, 2019 at 10:31 am #58822mishaLSE
MemberThat worked!
You are a gentleman and a scholar, thank you!March 30, 2019 at 8:59 pm #59006Eyal Fitoussi
MemberYou are very welcome. I am glad I could help.
-
AuthorPosts
The topic ‘Displaying a map on page load’ is closed to new replies.