I posted a feature request before to get the new feature, โtext buttonโ to fire the action etc. While I wait for the time it happens, I come up with a workaround to get the some sort of action button UI.
The trick is rather simple and not difficult to arrange. Action button is just a button for Enum type data field, and only one (1) option is made available all the time. Once the app user hit the button, it is appsheet default "buggieโ behavior where it clears the field value. Then we can associate action, such as sending email, alert, notification, change value whatsort ever, which is fired through the workflow as well.
And twisting this trick further, by making this enum field to โrequiredโ then the button turns to be โunclickableโ button, but which makes the text values standing out.
I made qucik sample app for community.
https://www.appsheet.com/samples/Sample-App?appGuidString=8b7588a6-0c22-4661-9dac-b9a773827818
This is not perfect solutions, as it requires a bit of time to toggle the button (not super responsible) , as this tricks involves workflow to be fired on the backend, but it is alway better than nothing.
I like the use of the large button like that, looks like youโre developing a smart device integration.
Nice hack thank you @tsuji_koichi
Another creative and useful one from you, thank you very much.
Another way to turn on the light
2 Enum columns: [On] and [Off]
Reset on Edit is enabled
Detail View with Quick Edit:
You can also use SVGs for images.
I use this trick for an on / off button with these icons:
How to make this button?
If this seems difficult, please look at this tip:
The basic idea is the same.
Any idea on how to dont overload the sync?
I mean, Its really usefull, but sometimes IF user starts fidgeting and and presing it like crazy it may do a mess with sync time.
Any idea on how to tell appsheet server to ignore values if they are changed again to the last value?
Good idea! It would be great if AppSheet could figure out how to make the platform more efficient in that way.