Page 1 of 1

Yes No Confirmation Dialog Box

Posted: Fri Apr 24, 2020 10:02 am
by mcsortan
Hi all

Is it possible to have a yes/no dialog box to confirm the pressing of a button

I would like to have a confirmation when pressing my ‘power all off’ button which every now and again gets pressed accidentally

Thanks

Re: Yes No Confirmation Dialog Box

Posted: Sat Apr 25, 2020 5:17 am
by cv27
Yes, you could do logic around that. But I find it simpler to use 'press & hold' to actually action the button.

Re: Yes No Confirmation Dialog Box

Posted: Wed Apr 29, 2020 9:19 am
by Peter M
Yes. I have exactly the arrangement you describe for system power off.

My solution uses a sub-page which is normally hidden with visibility linked to a flag. When the "Power Off" button is pressed the flag is set, and the sub-page appears with two buttons on it. "Confirm" proceeds with the powering off, and "Cancel" just flips the sub-page flag so you go back to where you were.

Cheers,
Peter

Re: Yes No Confirmation Dialog Box

Posted: Sun May 24, 2020 11:03 pm
by manaman
What Peter said. Just use a flag to load the 'confirm' sub-page, or even just buttons on the same page linked to the flag being on. Then yes does the action and cancel turns the flag off and hence the sub-page or buttons