How to hook into 'create another' action
Trying to pre-fill the form when you click 'create another' action.
It's within a relation manager's table CreateAction.
If I overwrite the footer actions when calling
makeModalSubmitAction
it's returning a StaticAction without access to the form.5 Replies
Hello, I think you can do something like
Cheers tried that but it's only called on the initial form, not when you call 'Create another'. It's this logic where there doesn't appear to be a way of calling it
Ok wait. I have a solution
I'm in the same boat, have you found a way to do this?
Yeah kinda using afterStateHydrated/Set on a component within the form (credit to @oddvalue for coming up with this work around)