I have a CPT for contest codes.
When people submit the right code in the form they win: forwarded to a congrats-page and they get a notification.
When the code is not a ‘winner’: only forwarded to a ‘try again’-page.
About the notifications; i’m trying it with gform_pre_send_email.
But i can’t find out how to get field values in there. Also an extra check on specific form is wanted.
What’s the best hook to achieve this all?
Any links to interesting snippets?