It works fine on the frontend and data is saved correct in the database, but… Check out this picture.
When I check the data of custom fields in the WP admin the data is incorrect (see image on the left). It seems some cached data. It always shows the same with different subscriptions.
May I ask where exactly are you looking in the database? The custom script (which I didn’t write, for what its worth) is intended to take the registrant’s previously answered questions and apply them to the same questions in later registrations. The part of your screenshot on the left (the registration admin page) gets the data from the _esp_answer table.
If you think the problem might be related to caching, can you check to see if your site is using a caching plugin?
I indeed checked the _esp_answer table. So it’s saved correct in there. What do you mean with a “caching plugin”. Could you give an example of something like that?
Hi Guys, just wanted to update you the problem was that the script mentioned above was also executed in the WP admin, instead of only on the frontend. I guess that was causing the problem. All is working well now. 🙂
So the above registration in the image was from a manual admin registration?
Viewing 5 reply threads
The support post ‘Incorrect data is shown in WP-admin after pre-filling custom 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.
Support forum for Event Espresso 3 and Event Espresso 4.