Hi, new user of the plugin here. Hopefully Event Espresso can do what we’re looking to accomplish!
I’m attempting to pre-populate some form values using jquery. However, these scripts aren’t aren’t affecting the actual values in the checkout process with Event Espresso as expected.
(I found “1-eb6066bfb62fa788537ebab6d09f1a7f-fname” by examining the source HTML – it seems to be the same when the page is reloaded, but I imagine I’ll need to filter this down to the fname part at some point because I assume the first piece will change depending on the event)
Where and how are you adding the script? E.g. are you adding it directly to a template file (if so which one)? Or are you using a filter/action hook to inject the code?
I’ve tried inserting it in the template before and after the_content. I’ve also tried inserting it directly in the content, through WordPress (text/HTML editor).
Is there a template for a filter/action for accomplishing this particular action? That would actually be preferred.
Also the issue you are having is you are using the input ID instead of the name, but they are different. Here is an example from my site:
ID = 1-21496068d338af9e96294b0f0d52cde3-fname
Name = qstn[1-21496068d338af9e96294b0f0d52cde3][fname]
Hope that helps!
Viewing 3 reply threads
The support post ‘Changing form input values in Event Espresso (EE4)’ 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.