Support

Home Forums Event Espresso Premium Auto-Fill not working for some fields

Auto-Fill not working for some fields

Posted: November 11, 2020 at 7:33 am

Viewing 3 reply threads


greenmellen

November 11, 2020 at 7:33 am

We have Phone, Company and License Type as user meta in the DB, but even though these questions were added to the Personal Information form, and are present in the user meta, they aren’t populating. Is there something that has to be done to connect the 2 instances?


Tony

  • Support Staff

November 12, 2020 at 9:35 am

Hi there,

Currently, Event Espresso does not pull any values from user meta into the registration form, it pulls values from the ‘EE_Attende’ object (First Name, Last Name, Email) and whilst it would be possible to use user meta values you will need some custom development to do so.

Currently, Event Espresso will only autofill the First Name, Last Name and Email address questions although we do have a snippet that can pull the answers to previously answered questions:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/addons/eea-wp-user/mn_wp_user_addon_save_custom_answers_too.php

Meaning on their first Event Espresso event registration they would need to provide those details but after that, they’ll auto-fill from the last value they used.

Will that work?


greenmellen

November 12, 2020 at 10:22 am

I’ll add that and see if the client is good with that! Thanks for the help!


Tony

  • Support Staff

November 13, 2020 at 3:28 am

You’re most welcome.

I remembered I actually have an example of pulling values from user meta available here:

https://gist.github.com/Pebblo/0abe11d85af126e0aa0db80b1772901b

It’s not going to work out of the box (or likely at all right now on your site as the ID’s/meta keys won’t match) but if you are comfortable with PHP is pretty easy to modify.

Viewing 3 reply threads

The support post ‘Auto-Fill not working for some fields’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso