Is there a way to stop the data from being stored in the database as we use a different CRM to send the data to? We still need the Send to Database checkbox but to use a webservice to send the form data.
It's been a while since I've had to do it but, as I recall, you'll need to tie in to the BeforeSubmitPostedData event and do something like the following:
private void XForm_BeforeSubmitPostedData(object sender, SaveFormDataEventArgs e)
if ((e.FormData.ChannelOptions & ChannelOptions.Database) == ChannelOptions.Database)
e.FormData.ChannelOptions &= ~ChannelOptions.Database;
If its an option then you could look into using the new Episerver Forms. You can choose to not save to the database out of the box.