On form submit can you send an email and also send the form data via webhook to zapier?

I was attempting to do it by setting the form to send an email and then using an event listener in a custom code block. But couldn’t quite get it to work.

I believe it was because the form submits and then presumably clears the form so the webhook was sending empty fields? I got it close to working but I also require the form to redirect to a thank you page after submission which seemed to throw a spanner in the works.

Is what I’m trying to do possible?

Thank you.