Add action buttons to custom page with HasForms
Hi everyone,
I have a question regarding the best method to add action buttons, such as "Create" to my custom page. I've been searching through the documentation, but couldn't find any relevant information.
I attempted to implement the
HasFormActions
interface on my Page
and added the getCachedFormAction()
method. However, I'm unsure how to properly render these buttons in the view.
If anyone has any insights or suggestions, I would greatly appreciate your help.
Thank you!
and my view :
7 Replies
Thank you for response, but this code will add a button to the page. I want to add the action button at bottom of the form . I can make it with a
but this button does'nt act like a defult action.
Ahh so I think you want #drop-in-action ‘s?
V3 will have native support for actions everywhere
I would like to implement a feature similar to the one shown in the image. However, I want to incorporate default action behaviors such as displaying a circular progress indicator with the text "Uploading..." while the form is being saved.
That's just a file upload field customised slightly?
Thank you so much! Your hint was really helpful, and I managed to solve it using the following approach:
and I added this line to the view
and it works .
👍