I am building some forms with Umbraco Forms, but before I do I need to ensure that it is going to be able to be extended in the way I need. Can anybody tell me how I can alter the MessageOnSubmit property to show a custom success message for each submission?
I have tried setting this (e.Form.MessageOnSubmit) in a custom workflow type, but the original message set in the UI is still always shown.
Appreciate any guidance you can offer.
Gary
It is possible to override the default
UmbracoFormsControllerfor form submission by inheriting from it yourself; and then overriding theOnFormHandled- from there you can set theMessageOnSubmitproperty on the model.Then it's just a matter of updating the Razor template responsible for generating the form to point at your new controller instead of the default.