F
Filament16mo ago
ahmant

Change form submit URL / Route parameters

Hello, How to change the form submit URL or route parameters? I have a "Chapter" resource, that's related to a "Course", so in the URL, I have two parameters, one for the "chapter record (ID)" and one for the "related course (ID)" So when saving, I need to get the course ID from the URL
3 Replies
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
ahmant
ahmant16mo ago
This is related to the form redirection after the submission and saving
You may set up a custom redirect when the form is saved by overriding the getRedirectUrl() method on the Create page class.
What I want, is to edit the form action URL
Dan Harrin
Dan Harrin16mo ago
no you dont that would break filament everything you need is probably available in the $this object inside a hook or other class method