Can we use Action Buttons in Form Views? The official answer is: No. Here is an example.
But I found a way how we can use Actions inside a Form View. It uses Slices and the SelfRef-Method.
You can find the sample app in my Portfolio "Action in Form".
Note: This does not work with the new Desktop mode or the new mobile framework.
Here is a Gif to show how it works. The 2 inline views (table and deck) are the same. Just to show how it looks in table or deck view.
With an Input Action set as Row Selected Event Action, you can even open the item and edit it:
This is a simple sample that works on 2 Tables: Orders and Items. But under the SelfRef you could also add a Virtual Column to open the detail view to third table and use actions to change values in that third table. I use this method in a productive app.
Here are 2 other methods to add action-like behavior in a form view:
Very innovative @Fabian_Weller
Thank you very much.
This is really cool Fabian, gonna borrow some of these ideas, thank you for sharing.
I find it interesting that the Related items inline view has a "New" under it when in the form view, but it has "View" & "Add" in the detail view. I got confused, thinking somehow you'd overridden something, but it seems it's just normal behaviour...
Hi @leonsteber you are right - this is funny. I just created a new app just to test: In Detail View it is called "Add", in Form View it is called "New".
Workaround: Via Localize we can name both the same.
@AleksiAlkio is this intended?