Expressions within confirmation message

Hi,

I think that it would be great if we could include [column] value(s) within an actionโ€™s confirmation message.

For example:

If an action is changing/adding the value of a cell then perhaps the message could ask whether or not the value is correct or not before confirming.

โ€œโ€œSet new location toโ€, [New_Location_Ref]?โ€

Best,
Chris

Solved Solved
0 21 2,337
1 ACCEPTED SOLUTION

Done.

As of today, action confirmation messages show an expression editor option, and the expression can use column values (except for the couple of actions like Add and Export To Csv that have โ€œtable-scopeโ€ rather than โ€œrow-scopeโ€)

View solution in original post

21 REPLIES 21

Just tried to do this, was very surprised that it is not possible.

A massive +1 on this.

Surprised this hasnโ€™t been implemented after a few years of bouncing around the idea. I remember someone from the Appsheet Team mentioning that itโ€™s a fairly complicated thing to actually achieve.

We can limit / control every little thing about an โ€˜actionโ€™ โ€ฆ but not this

I miss it specially on โ€œsend e-mailโ€ actions. On the confirmation message I can describe the rule I set (i.e. โ€œthis will notify everybody in the your own departmentโ€ or โ€œthe e-mail will be sent to the person who added this rowโ€), but I cannot put a clear confirmation message like โ€œThis action will notify person A and B. Do you confirm?โ€.

The quality department in my company is really bugging about notifications sent to the wrong peopleโ€ฆ

Any news on this? That would be really useful.

Any news on this? That would be really useful.

Oliver
New Member

Agree this would be a great feature too!

Steve
Platinum 4
Platinum 4

You can actually use an expression in an actionโ€™s confirmation message, even though the app editor doesnโ€™t indicate it and Expression Assistant isnโ€™t provided. Try it!

Yes you can do something like:

CONCATENATE(TODAY()," Hello World")

But you canโ€™t include columns!
This will give an Error โ€œUnable to find column โ€˜Customerโ€™โ€

CONCATENATE(TODAY()," Hello ",[Customer])

Here is a challenge for youโ€ฆif I want to change the Heading text of โ€œConfirmโ€ in the confirmation text box based on whether the user swipes left or right in a deck view, is this possible?

Iโ€™m trying to apply two actions to the Deck View row. Swipe left and you โ€œCANCELโ€ Action. Swipe right and you โ€œCONFIRMโ€ action. You can see the obvious miscommunication here if someone saw โ€œConfirmโ€ on the confirmation message when they were trying to cancel.

How do I customize the confirmation message based on the action taken? by the way, I wouldnโ€™t be using the swipe actions if action buttons were available in Deck View.

Youโ€™re talking about this, correct?

You can change that text in UX->Localize.

There is no expression thatโ€™ll determine the context of which Action is being run.

You could combine your actions with some data change action, into a Grouped Action, and have the expression in Localize output a different text based on this data being changed. Kind of a lot of work for such a small thing, and Iโ€™m not 100% it will work.

Action button are available in Deck view.

Thank you! I found the Localized field and changed the Confirm header. This will work for now and agree that itโ€™s not worth developing a complicated work around.

I wasnโ€™t able to add my Actions using the settings you shared here. Maybe I have another setting flipped somewhere? I am able to add the Email action when an email address is present in the row. But none of the others show up.

Iโ€™m ok for now using the swipe left/swipe right functionality but if the client doesnโ€™t like it, Iโ€™ll need to revisit.

Thanks again!

Hi @Mike_T under UX > Localize you can put this expression for โ€œConfirmโ€:

SWITCH(CONTEXT(View) ,
  Your_Deck_View_Name , " " ,
  Confirm
)

So when youโ€™re in the Deck view, the word โ€œConfirmโ€ will not appear
3X_c_7_c7433b2f0d8821383dec82f6a872355d055c80f2.png

When you are in another View, the word โ€œConfirmโ€ will appear.

Instead of double quotes you can put Emojis like


You said you cannot add the Actions in your deck view.
Please check the Prominence under Behavior > Actions.

Hi @praveen As mentioned above, you can not include columns. But that would be very helpful.

For now, the topics discussed here seem mostly addressed.

*) We need to make it more obvious that an action confirmation message can take an expression
*) I agree that it would be nice for not just the confirmation message but the rest of the dialog box to be customizable per action (the header, the Ok and the Cancel button). However, weโ€™re balancing this off versus how many different customization expressions to carry around in the app definition.

So for now, my judgment is that we can leave this mostly as is and most of you will be happy. Please do correct me if Iโ€™m wrong though.

Done.

As of today, action confirmation messages show an expression editor option, and the expression can use column values (except for the couple of actions like Add and Export To Csv that have โ€œtable-scopeโ€ rather than โ€œrow-scopeโ€)

Awesome!!!

Using it already!

Good stuff!

Very cool!

Hi @pravse This is not working when you use "Execute an action on a set of rows".

The confirmation message in the set of rows will not show column values and will pop up only once.

Please see my test app:

https://www.appsheet.com/Template/AppDef?appName=Action-549987

In the GIF you see that I have one action "Directly" that counts up. The confirmation message is working fine.

I have another action "All rows" that executes the "Directly" action on all rows.

The Action is working, but the confirmation message not.

I also sent it to https://www.appsheet.com/Support/Contact

Confirmation Message.gif

Same problem here.
I'd like to show a simple message like "Are you sure you want to delete <x> records?" but that seems impossible.
Also, seems it is impossible to have "Are you sure you want to delete <A.name> and <B.name>?" if you select A and B

Hi @HighLiuk I was in contact with AppSheet Support. This was the last response on Thu, Sep 1, 2022:

For "Directly" action, the Counter is able to fetch the current value of a particular row and shows the expected confirmation message.

For "All Rows" action the confirmation message is not showing the exact count, because this action is a reference action of "Directly". Which is trying to determine the Counter value from all the rows which is not possible.

It is better to have a separate action for "All Rows" with a common confirmation message which will be applicable for all rows.

Top Labels in this Space