Need help to overwrite the default create action in a resource /create page.

I'm having a hard time trying to overwrite the default create process in a specific /create page of a resource to include some custom logic I need to run (upload a file, then execute a custom function calling a service). I've being googling a lot and I didn't find anything helpful, the documentation about it isn't clear on whether it is even possible to do this. I 'm probably doing something wrong here or maybe I did skip some important bit of information. Can Anyone point me in the right direction?
6 Replies
Reinaldo
ReinaldoOP8mo ago
When reading this I don't have a clear mind on where the modifications should go to properly work. Is it in the pages/createXYZResource file of the specific resource?
Reinaldo
ReinaldoOP8mo ago
Okay, then I will be able to use CreateAction::make()?
LeandroFerreira
LeandroFerreira8mo ago
if you are using resource pages, create action is only a link to this page
Reinaldo
ReinaldoOP8mo ago
Let me send a picture so you may better comprehend what I' m trying to accomplish here. <-- not possible. I need the functionality inside the footerAction "Import" to be executed when I run the "Create" action/button with some changes (I need to upload the file not to just tmp but to a user specific directory too) It's there a way to complitely hide to the user in this page the footer default actions to be able to only use the form/footerAction?
Want results from more Discord servers?
Add your server