timepicker aftertimeset cancel button click

22 views
Skip to first unread message

Krzysztof Kucner

unread,
Jun 25, 2019, 5:21:52 AM6/25/19
to MIT App Inventor Forum
There is no event for timepicker aftertimeset cancel button click. How to catch this event to change state of switch or do other things?

TimAI2

unread,
Jun 25, 2019, 5:32:38 AM6/25/19
to MIT App Inventor Forum
If you do not pick a time, nothing happens, and the user is returned to the app. This is by design.
If you need to capture that the user did not pick a time, you need a boolean flag in the aftertimeset event, e.g. true if time set, false if not (false being the default and reset value), then query the value of the flag, then reset.
Reply all
Reply to author
Forward
0 new messages