Adding Buttons to Form View

tvinci
Participant V

Hello AppSheet,

Is there a way to add buttons to form views?

Thank you.
Tiffany

Solved Solved
1 13 7,595
  • UX
1 ACCEPTED SOLUTION

Steve
Participant V
13 REPLIES 13

Steve
Participant V

Nope.

The only workaround I can think of is to have instead of a form, have it go to a detail view with quick edit, and you can add in buttons.

But, bear in mind, if you go that route, EACH quick edit field queues an update to that row. So if you have 5 quick edit fields that get used, that is 5 separate updates to sync.

Yeah, this would only really work if your app uses delayed sync

Still five updates to sync.

Bahbus
Participant V

Yep. In my app that Iโ€™m developing as a digital menu, Iโ€™m using two quick edit edits as buttons on a detail view to show what kind of options are available for that item. It doubles as being pre-selected if you choose to order that item. Those options are prefilled on the Form, but still changable. The only downside is, regardless of how I choose to do the sync, if a customer taps those two buttons several different times in a short period, the force sync I have after they add something to their cart has to wait for all those individual updates.

I could choose try and display these two fields as non-quick edits, but my problem with that is I canโ€™t find a way to display it in a style that I find as attractive as the buttons.

Basically, quick edit fields are a double-edged sword.


There is a workaround to use โ€œButtonsโ€ in Forms.
In this App, I hide the โ€œCancelโ€ and โ€œSaveโ€ button via Localize.
Instead of them I use ENUM Buttons to:
Save the Form and close it OR: Save the Form and open a new form.
In the Form I enabled the Auto save.
2X_f_f7a65abd4971bdf9c6520a81a63028a819dc0304.png

The Form has a Form Saved Event:

Itโ€™s a grouped action:
2X_b_bab574d7822c06dc95183ed1beaf5eedc0345d1c.png

When you choose the Enum Button with the , it saves the form and goes to the Parentโ€™s Detail View.
The condition of this Action is: CONTAINS([Enum],"๐Ÿ’พ")

When you choose the Enum Button with the , it saves the form and opens the same form again.
There is no condition in the Action, because the first Action will be skipped.

For the Enum column you can also use Images as values.
This could be something like this:

Thanks a lot @Fabian!

Iโ€™m trying to replicate what you did. How did you configure the actions? Iโ€™m confused as to what to do when I go to Behavior > Actions > Grouped: Execute a sequence of actions

In particular, I cannot โ€œGo To Page_Detail Viewโ€ or anything comparable.

Here is another usecase:

I looked at your other use case. Something that complicates my form a little bit is that I replicated @GreenFluxโ€™s sample app that turns an EnumList into individual line items, so I have this action under Form Saved:

(Thanks @GreenFlux)

You could try replacing the Form Saved action with a new, Grouped action to do both.

You would have to create your own actions for that. Then it will show up in the list.
LINKTOROW()

jkevz07
Participant II

no, but you can able to manipulate the save button thru ACTION.

rajtrader
Participant I

Workaround: 

  1.  Create an action with whatever condition or expression
  2. create an automated bot and attach your "action".  E.g. when there is a change or a new row is updated using the form(Event), run a data action.

rajtrader_0-1675583819595.png

 

Top Labels in this Space