web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Let code wait for User...
Power Apps
Unanswered

Let code wait for User Input Dialog Control Component

(0) ShareShare
ReportReport
Posted on by

Is there a way to let my code wait for User input e.g. 

 

Case: I have a Save-button in my app. Before saving my data I first want to open a Confirmation Dialog ('Save?  Yes/No). 

I was happy to find the standard Powerapps Dialog Component 

https://powerapps.microsoft.com/en-us/blog/powerapps-ten-reusable-components/

So far i am able to OpenClose the DialogBox and determine which button is pushed ("Ok" or "Cancel") by adding label with Dialog.SelectedButton.Label. 

But I cannot figure out how to let my IF (Dialog.SelectedButton.Label="Ok", SaveData) code wait for user input. It now acts on the current value in stead of using the value the user is yet to choose. 

 

Note : an alternative is building a confirmation dialog myself and putting code behind both buttons (OnSelect Ok-button : SaveData) and OnSelect of Cancel-button: Reset data. My question is more related to how to use the standard component distributed by MS.

 

 

Categories:
I have the same question (0)
  • jhall Profile Picture
    636 on at

    Just FYI, that control is not "standard" at all.  It's one of the new customizable components that can be added.

    I haven't looked at this specific control, but if you can edit the OnSelect for that control's "OK" button (or whatever you changed the name to be) then it is best to do your save there.  That's the best way to do it.

    An alternative would of course to have a Timer that has it's Start event = to whatever value gets returned/set when the Dialog button is pressed, but that's a little convoluted.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard