I figured out how to add form fields using the buildForm hook. I am adding a select element to a participant profile on an event registration form. Do the values from the added fields get saved when the user submits the form? If so, where can I see them? If not, how do I store them with the other profile info using code? The custom fields feature does not work (DB Error: Already exists) right now or else I would use that.
As Jitendra explained you can use the
postProcess hook and the
$form parameter. The submitted values will be in an array