I have tried looking for this but I am obviously being a bit blind.
I have a form, with a "Name
used in code (for developers)" of sf_registration.
How do I go about intercepting the sf_registration submisison? Ideally I'd like to get the data and send this through to our CRM instance but I just need to know how to hook my code this form.
Any ideas or pointers to relevant docs/blogs?
EDIT: I have tried following this here
post but without success.
All I want to do is get into the code!!! SO I have the following class
public class RegistrationForm : FormsControl
protected override void InitializeControls(GenericContainer container)
this.BeforeFormAction += new EventHandler<
private void CustomFormsControl_BeforeFormAction(object sender, CancelEventArgs e)
FormsManager manager = FormsManager.GetManager();
//get the form response by using the current form and the referral code
var formResponse = manager.GetFormEntries(FormData).Where(fE => fE.ReferralCode == FormData.FormEntriesSeed.ToString()).SingleOrDefault();
And I have updated the settings accordingly (see forms control)
However, when I stick breakpoints into the code, it doesn't get hit. Can someone point out the error in my ways?
Thanks in advance.