I have an administration form in my module with a couple buttons at the bottom. I can see how to override getCMSActions() to add on a button and form action and I have this working. However, I want to change the behaviour of the "Save" button. I'm not looking to make a big change -- just to redirect on successful submission. I don't know how to do this as I have no idea where the method is that handles the form submission action. I'm assuming that I can override the method if I know what it's called. Any hints?
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Do something in onAfterWrite.
Or if it's not your object, read docs on DataExtension
Excellent, that works thanks. I think my mental model just tunes out methods like this on model classes.