Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter m4t1eu06

    (@m4t1eu06)

    Hello…. Can i have some help please?

    Plugin Author WP Sunshine

    (@wpsunshine)

    I see two fields in your form with id=”id-adresse” – this is likely causing part of the issue. You can only have 1 unique ID per page.

    Also, you have not set any fields for where the data should populate the address. It should ultimately look something like this: https://share.getcloudapp.com/RBurZN7L

    Thread Starter m4t1eu06

    (@m4t1eu06)

    Thank you for your answer.

    I definitly need those 2 fields. I’ll find another solution then.

    Thanks

    Plugin Author WP Sunshine

    (@wpsunshine)

    That is invalid HTML and needs to change regardless. Just make them unique like id=“id-adresse1” and id=“id-adresse2”. I’m not saying to completely remove one of them.

    Thread Starter m4t1eu06

    (@m4t1eu06)

    Thank you for your answer. I made the “code” unique as you suggested

    I am not sure I understand:

    Here is my new setting:

    https://ibb.co/vvmD7hH

    But my form is like that:

    https://ibb.co/hCdzHjK

    Should i add, in my form (Contact Form 7), the fields written in the plugin configuration page ? : {address1:long_name}, {locality:long_name}, {administrative_area_level_1:long_name}, {postal_code:long_name}?

    Plugin Author WP Sunshine

    (@wpsunshine)

    In your settings, the “Initial field selector” should now be #id-adresse1 as you have changed that on your form.

    For the “Data population”, you then enter the unique ID of the field in your form you want to populate with the information you select. You can populate a single field with multiple data points if you want.

    The next step is adding a unique ID to the form field you want to have automatically populated and then use that same ID in the “Data population”.

    Thread Starter m4t1eu06

    (@m4t1eu06)

    Thank you for your help but it is not working

    So, here is what i have tried:

    <label>Adresse*</label>
    [text adresse-bien id:id-adresse2]
    
    [text adresse-bien id:id-adresse3]
    [text adresse-bien id:city]
    [text adresse-bien id:state]
    [text adresse-bien id:postcode]

    I want that, when the client fills the field “[text adresse-bien id:id-adresse2]“, all the other fields populate.

    Here is my configuration:

    https://ibb.co/SVpKB9H

    Nothing happens when i use my form and fill the field “[text adresse-bien id:id-adresse2]“

    I have also tried this:

    <label>Adresse*</label>
    [text adresse-bien id:id-adresse2]
    
    [text adresse-bien id:id-adresse3]

    And this configuration:

    https://ibb.co/Chc6Zsd

    Nothing happens. I don’t have the google adress suggestion as i am expecting.

    The page is here

    Do you have any suggestion please?

    Plugin Author WP Sunshine

    (@wpsunshine)

    I am seeing it work, here is a short video: https://share.getcloudapp.com/8LuqNY26

    Thread Starter m4t1eu06

    (@m4t1eu06)

    Thanks for your help

    For a few minutes i couldn’t believe it as...it is working for me ONLY when i am logged out of mywebsite (or private navigation) 😅👍👍

    I tried to activate it for 4 forms but, the way i did, the autocomplete is not working

    First of all, for some reason, the CSS selector is way more complicated now. Before it was something like “id-adresse” but now it is:

    "#wpcf7-f2311-p2314-o1 > form > p:nth-child(12) > span:nth-child(3) > input"

    Second thing is that i tried to make it work for 2 forms. So i added a “;” to separate the Initial field selector name and the Data population name and it’s not working.

    wpcf7-f2311-p2314-o1 > form > p:nth-child(12) > span:nth-child(3) > input; #wpcf7-f2310-p2319-o1 > form > p:nth-child(12) > span > input

    How can i make it work on different form please?

    We’re almost done 😉

    Thank you 👍

    • This reply was modified 1 year, 1 month ago by m4t1eu06.
    Thread Starter m4t1eu06

    (@m4t1eu06)

    Hi.

    I still have a request please 🙏

    How can i make it work on different forms please (4 forms)?

    I added a “;” to separate the Initial field selector name and the Data population name and it’s not working:

    wpcf7-f2311-p2314-o1 > form > p:nth-child(12) > span:nth-child(3) > input; #wpcf7-f2310-p2319-o1 > form > p:nth-child(12) > span > input
    

    Thanks for your help

    Plugin Author WP Sunshine

    (@wpsunshine)

    If you want to use a single Address Autocomplete set up for all your forms, then I recommend using the same ID/class in every form on the input element itself. Otherwise, you need to create separate Address Autocomplete instances for each form – you cannot put multiple CSS selectors.

    Thread Starter m4t1eu06

    (@m4t1eu06)

    Great, thanks

    I used the same ID in every form on the input element itself and it works

    The last thing you might wanna know is that i still have this problem that, when i am logged in as an ADMIN, the adress autocomplete is not working. I have tried with a “client” account and it works

    thanks for your help

    Plugin Author WP Sunshine

    (@wpsunshine)

    Glad you got it working for non-admins for now. I cannot reproduce any issues on my end admin vs normal user though so there may still be something different with your form output for these types of users.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Need help to configure it’ is closed to new replies.