Yes, this is because the popup content does not exist when the page initially loads so it cannot attach itself to the input fields. Here is a doc article that talks about it more: https://wpsunshine.com/documentation/trigger-address-autocomplete-on-hidden-elements/
Hi @wpsunshine
I’m using the Popup Maker plugin, and here’s a screenshot of the popup containing the Gravity Form. The form initializes after 2 seconds, but when I type an address, nothing happened.
Tell me how can i fix it?
Thanks.
What is the URL to the site so I can take a look first hand?
Hi @wpsunshine
here is the link for pop up and here the same form with different url.
Waiting for your reply. Thanks.
Looks like you are using the Popup Maker plugin?
That plugin has a JavaScript event called “pumAfterOpen” which fires after a popup is opened.
You will want to follow the example found here: https://wpsunshine.com/documentation/trigger-address-autocomplete-on-hidden-elements/
In your case, you could try the following:
jQuery( document ).on( 'pumAfterOpen', () => {
wps_aa();
} );
This will trigger Address Autocomplete to attempt to find the form and attach itself to the proper fields again once the popup is opened.
This Javacript code is untested and requires you to add this custom code yourself via a code snippets plugin, creating your own custom mini plugin, or adding to your current theme.