Adding Native Confirmation Dialogs with Power Fx function


Previously, creating a yes/no confirmation dialog in Power Apps required custom solutions like overlay screens, JavaScript, or complex formulas, which increased development time and complexity. The new Power Fx Confirm() function simplifies this process by providing a built-in, customizable dialog with a single function call. This function is useful for actions requiring user confirmation, such as navigating away with unsaved changes. It returns true or false based on the user's choice, enabling straightforward integration into app logic. While styling options for the dialog are limited, it blends seamlessly with the app’s design. Confirm() works in both Canvas and Model-driven apps and supports mobile devices by invoking a native system-style alert. It is synchronous, pausing app execution until the user makes a selection. The function offers customization for text but is limited to binary choices, prompting users with clear yes/no options without requiring custom pop-ups.


Article 2w

Login now to access my digest by 365.Training

Learn how my digest works
Features
  • Articles, blogs, podcasts, training, and videos
  • Quick read TL;DRs for each item
  • Advanced filtering to prioritize what you care about
  • Quick views to isolate what you are looking for right now
  • Save your favorite items
  • Share your favorites
  • Snooze items you want to revisit when you have more time