I'm newish to Craft CMS.
Im building a plugin for a client, one of their forms needs to post inputted data to an api then return a result to a hidden text area before the email if fired off.
I have built the form and plugin with event, only problem is this event fires with every form i have on the site now. is it possible to target a form handle in the event ?
Currently using
craft()->on('amForms_submissions.onBeforeSendEmail', function (Event $event) {
$params = $event->params();
}
Thanks in advance