Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Error handling in FormsSubmissionFinalized event

Vote:
 

We're currently building custom elements in EPI Forms. Part of that is that we also want to call custom webservices with custom logic. Because we use multi step forms and only want to submit the data at the end of the process to the webservices, we can't use the FormsSubmitting event (that is triggered each step transition and only contains data of that specific step). Therefore we're hooking into the FormsSubmissionFinalized event which is triggered when the submit button is pressed. However the FormsSubmissionFinalized event doesn't have a cancellation handling mechanism like the FormsSubmitting event has. Is there a way to handle errors in that specific event, such that we can send feedback to the UI in case something is going wrong in the webservice calls?

#198589
Oct 31, 2018 14:35
Vote:
 

You can write a custom actor which validate your submission then send cancel signal and message. Please see the doc here: https://world.episerver.com/documentation/developer-guides/forms/implementing-a-customized-actor/

Note: It is available from Forms 4.16

#198720
Nov 05, 2018 11:42
Vote:
 

Thanks for this input! I will give it a try to see if it fits within our solution.

#198808
Nov 07, 2018 8:26
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.