London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
Hi Jonathan,
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.
https://world.episerver.com/add-ons/episerver-forms/
David
Hi,
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.
Thanks
Jon