Skip to content
All 183 components, $149 onceSee plans

Modals for Power Apps

A modal is a dialog that sits on top of the screen and blocks it until the user answers: confirm a delete, acknowledge an error, type a note, decide what to do with unsaved changes. Every PowerLibs modal is three ordinary controls: a demo trigger button, a dim backdrop that closes the modal on tap unless you switch that off, and a centred panel that is never wider than the screen minus 40 px. Reach for one when a toast is not enough because the user has to choose before going on.

Pick a variant

  • ModalFreeClassic, Modern

    A plain dialog with a title, a text and one or two buttons; the starting point for anything custom

    Settings: Parts toggles (trigger, backdrop closes, close X), Title, Text, Primary and Secondary button, Trigger button

  • Confirm ActionPaidClassic, Modern

    Are you sure? A warning badge, or a red one for a delete

    Settings: Parts toggles (plus icon badge), Question, Explanation, Confirm and Cancel button, Destructive switch

  • Success ModalPaidClassic, Modern

    Telling the user an action completed, with a green badge

    Settings: Parts toggles, Title, Text, Button, Second button

  • Info ModalPaidClassic, Modern

    Announcing an update with a checklist and a link

    Settings: Parts toggles (plus list and link), Title, Explanation, Button, Link text and URL, List rows

  • Sign Out ModalPaidClassic, Modern

    Confirming a sign out

    Settings: Parts toggles, Question, Explanation, Sign out and Cancel button

  • Unsaved Changes ModalPaidClassic, Modern

    Leaving a page with unsaved changes: save, discard or stay

    Settings: Parts toggles (plus details box), Title, Explanation, What changed, Save, Discard and Stay button

  • Approval Request ModalPaidClassic, Modern

    The last look before a request goes to a manager, with a summary and the approver

    Settings: Parts toggles (plus summary box and approver card), Title, Explanation, Request type, Amount, Submitted, Approver name and role, Submit and Cancel button

  • Error ModalPaidClassic, Modern

    Showing an error with a details box and Try again or Go back

    Settings: Parts toggles (plus details box), Title, Explanation, Error message, Error code, Try again and Go back button

  • Input ModalPaidClassic, Modern

    Collecting a note or a comment in a text box

    Settings: Parts toggles, Title, Help text, Placeholder, Submit and Cancel button

  • Bulk Action ModalPaidClassic, Modern

    Delete 24 selected records? with the first names and a red confirm

    Settings: Parts toggles (plus list), Action word, Noun, Count, Explanation, Destructive switch, First names shown

  • Type to Confirm ModalPaidClassic, Modern

    A delete that cannot be undone: the red button stays off until the user types the word

    Settings: Parts toggles, Question, Explanation, Word to type, Delete and Cancel button

  • Progress ModalPaidClassic, Modern

    Saving or uploading, with a spinning ring and an optional percent bar

    Settings: Parts toggles (spinner, percent bar, Cancel), Title, Status text, Cancel button

  • Access Denied ModalPaidClassic, Modern

    The user is not in the right group: why, who helps, request access

    Settings: Parts toggles (plus details box), Title, Explanation, Needed role, Who to ask, Request and Back button

  • Feedback Rating ModalPaidClassic, Modern

    Five stars and a comment after something went well

    Settings: Parts toggles (plus comment box), Title, Explanation, Comment placeholder, Send and Skip button

Paid means any paid plan (which plan do I need?). Classic and Modern are the two Power Apps control sets you can pick from the Copy YAML button. Open the category in the library: Modals.

To copy a variant into Power Apps Studio, follow Getting Started. Modal is free; the other variants need a paid plan.

After you paste

Every modal opens when its own context variable becomes true and closes when it goes back to false. The variable is named after the modal: varShowModal, varShowConfirm, varShowError, varShowSuccess, varShowInfo, varShowInput, varShowLogout, varShowUnsaved, varShowApproval, varShowBulk, varShowTypeDelete, varShowProgress, varShowAccess, varShowFeedback. Names use your prefix settings. Because every modal has its own, several on one screen never open each other. To open one from your own button:

UpdateContext({ varShowConfirm: true })

Your own action goes on the confirm button, in front of the line that closes the modal. Every modal except Info Modal and Progress Modal ships with a comment on that button that marks the spot. Orders and galOrders stand for your own table and gallery:

// btnConfirmConfirm, OnSelect
Remove(Orders, galOrders.Selected);
UpdateContext({ varShowConfirm: false })

Input Modal and Feedback Rating store what the user typed or picked in variables (varInputModalValue, varFeedbackRating, varFeedbackComment) so you can use them in a Patch. Progress Modal reads varProgressModalPercent, 0 to 100, for its bar; the demo trigger sets it to 65, and your own formula closes the modal when the work is done.

Type to Confirm stores nothing. Its red button btnTypeDeleteConfirm stays switched off until the text in the box txtTypeDeleteWord is exactly the word from Settings, capital letters included. The lock is this formula in the button's DisplayMode property (Modern YAML reads .Value, not .Text):

If(txtTypeDeleteWord.Text = "DELETE", DisplayMode.Edit, DisplayMode.Disabled)

The Send button of Feedback Rating, btnFeedbackSubmit, is locked the same way until a star is picked.

Good to know

  • In the Modern YAML the text inputs (txtInputText, txtTypeDeleteWord, txtFeedbackText) have no Text property: read what was typed with .Value where the formula above says .Text.
  • Context variables live on one screen, so paste the modal onto the screen that opens it.
  • The backdrop closes the modal on tap. Switch that part off for anything the user must answer, such as Unsaved Changes; Progress Modal ships with it off.
  • The panel's height is a formula that reads its last control, usually the last button, so longer texts push the buttons down. Add your own controls inside the panel and chain their Y off the control above, like the generated ones do.
  • Keep the backdrop and the panel at the top of the Tree view, where Studio lists the controls in front, so they draw on top of everything on the screen.
  • Every modal offers Classic Controls and Modern Controls in the Copy YAML menu, with the same layout and the same names, except that icons become SVG images in Modern: the close X icoConfirmClose is named imgConfirmClose there. The backdrop stays a classic button in both, and the green check of the Success Modal stays a classic icon.
  • The primary button and the brand badge follow your brand color. Red, amber and green badges keep their meaning in both themes.

Open the category at Modals. For feedback that does not block the screen, see Toast; for a panel that slides in from the side, see Drawer.

Modals for Power Apps | PowerLibs