Posted: July 8, 2019 at 11:00 pm
|
Alright hope someone can give me a quick pointer. I’ve got a registration form like so You can see at the bottom there’s a checkbox to sign up for communication. I’d like to capture if this was ticket on submission. Found some code so I have this. } Now the question is how do I capture the value of that checkbox into wantmore? Is there a $post or get to that specific input? Appreciate pointers. |
Hi there, Your questions are linked to the EE_Registration object and You can use the EEM_Answer model to pull an answer for a specific question ID linked to a registration using something like:
An example (which the above is taken from) of that in use can be found here: https://gist.github.com/Pebblo/88f2a0a9213c716e4886a249e7709245#file-example-php-L30 In short you pulling the answer to a specific question ID linked to a registration (which is why you pass the registration object and the question ID) I recommend having a read through our model system documentation here: https://github.com/eventespresso/event-espresso-core/tree/master/docs/G–Model-System |
|
The support post ‘Get field data upon registration of attendee’ 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.