I want to hijack the "on-submit" event. I have a database table that I want to save the form data to but i have specific pre-insert logic I need to perform. I created the form from my datasource, my workflow doesn't trigger until it's too late. Umbraco Forms tries to save the record before I can inject the necessary values for my database constraints (not part of the form data.)
My assumption is that I need to get to the on-submit event before the postback occurs?
Umbraco forms - on submit
I want to hijack the "on-submit" event. I have a database table that I want to save the form data to but i have specific pre-insert logic I need to perform. I created the form from my datasource, my workflow doesn't trigger until it's too late. Umbraco Forms tries to save the record before I can inject the necessary values for my database constraints (not part of the form data.)
My assumption is that I need to get to the on-submit event before the postback occurs?
Hi Max
You can try to use javascript to hijack the "on-submit" event. Like that:
Thanks,
Alex
That will prevent the post back as well, correct?
Thanks, Max
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.