Add custom button in Component with form.
How can I add custom button on the left side of the "Save" button in Component with form?
7 Replies
not sure what you mean by component
but you can add an action to getFormActions()
I used the following code, but nothing appears next to the "Save" button:
Also, I think that even if this worked, it would have generated an action at the top of the form, while I need it at the bottom, on the left side of the "Save" button.
By "Component" I mean
class MyClass extends Component implements HasForms
oh so this isnt an admin panel page
i didnt know
how are you rendering the save button?
Sorry for jumping in here - I have more or less the same question.
I use the form builder in the front end like this:
what do you want the button to do
Call a action / method in my component
maybe just a wire:click ?
yes, sorry it's that simple - did not even think about that before now 🫣
Any updates on this?