Is it possible to make a custom action behave/look like as submit button?
Sorry if the title makes no sense.
When you upload files to a filament form, the 'submit' button changes (The label changes to 'Uploading files...', the button gets disabled and a loading indicator is added)
Is it possible to have the same behaviour with a custom action?
The only thing I managed to do is disable the button with a custom attribute
Is there a way to get the rest of the functionality? (change the label, add a loading indicator etc)
Solution:Jump to solution
FWIW, I found a way to do this
1) Add an id to your form
```html
<form id="my-form-id">...</form>...
1 Reply
Solution
FWIW, I found a way to do this
1) Add an id to your form
2) Change your action to something like this
Not pretty but it works ¯\_(ツ)_/¯
Hope it helps. Let me know if you find a better way please!