{"id":109188,"date":"2018-01-02T07:01:31","date_gmt":"2018-01-02T15:01:31","guid":{"rendered":""},"modified":"2025-06-11T08:10:24","modified_gmt":"2025-06-11T15:10:24","slug":"creating-dialogs-in-powerapps","status":"publish","type":"post","link":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/power-apps\/creating-dialogs-in-powerapps\/","title":{"rendered":"Creating a dialog in PowerApps"},"content":{"rendered":"<p>Imagine you\u2019ve designed an app that lists all of the store branches that exist for a company, you\u2019ve created the app to help stay organized with all of the various branches. One of those branches recently moved their store location and you need to update the app to the new address. You begin to edit the entry and mistakenly press the DELETE button instead of the SAVE button and now the entire entry is gone and must be recreated because of a small mistake.<\/p>\n<p>\u00a0<\/p>\n<p>A great way to avoid a scenario like this is by adding a dialog to your app. Dialogs are temporary, modal overlays that provide contextual app information or prompt users to act or provide input. Adding a dialog to your app is a great way to communicate warnings as a way to prevent or correct critical errors, like in the scenario described above.<\/p>\n<p>\u00a0<\/p>\n<p>Some important tips to keep in mind about dialogs:<\/p>\n<ul>\n<li>Include only the information users need to make a decision<\/li>\n<li>Use sparingly because dialogs disrupt the user experience<\/li>\n<li>Consider the importance of the information you want to share: is it important enough to interrupt the user?<\/li>\n<li>Consider how frequently the information needs to be shown; if you\u2019re showing a dialog or notification every few minutes, you might want to allocate space for this info in the primary UI instead<\/li>\n<li>If you expect the user to perform a particular action frequently, consider providing a way for the user to undo the action if it was a mistake, rather than forcing users to confirm the action every time<\/li>\n<li>Avoid complex decision making that requires additional sources of information unavailable in the dialog<\/li>\n<li>Don\u2019t overuse dialogs as they can interrupt workflow, only use when the scenario fits<\/li>\n<li>Don\u2019t use generic button labels like \u201cOK\u201d, make the button label very clear as to what action will happen when the button is clicked, like \u201cSave, Delete, Cancel, Download, View, Print, etc.\u201d<\/li>\n<li>Don\u2019t overwhelm the user with too many buttons within a dialog, stick to no more than three buttons.<\/li>\n<\/ul>\n<p>\u00a0<\/p>\n<p>Below are design guidelines to follow that will help you design your own dialog, be it a tablet or phone app. You may have noticed that dialogs look different from device to device, an iPhone dialog is designed a bit differently from an Android dialog. However, keep in mind PowerApps works on <em>all<\/em> devices and your app may be consumed by a user with an iPhone as well as a user with an Android device. Because of this, you may choose to style your dialog based on what device is most commonly used within your team, or create your own custom dialog.<\/p>\n<p>\u00a0<\/p>\n<p>When designing a dialog (for any device) you will want to insert a background overlay to help focus the user\u2019s attention on the contents of the dialog. Without a background overlay it can be difficult to focus on the message that is being displayed because the user can still see everything in the background.<\/p>\n<p>To create an overlay, insert a rectangle (which is accessible from the Icons dropdown from the Insert tab) and set the Fill to RGBA(0, 0, 0, .6). We recommend using this particular RGBA number because if the background were too dark, then the user wouldn&#8217;t be able to see much of the background and you still want the user to know the context of the dialog they are presented. If the overlay was too light, then it wouldn&#8217;t be as affective because the user could be distracted by the background because its not obstructed enough to focus the user&#8217;s attention.<\/p>\n<p><a href=\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/369f17bc-6b2a-4cd9-8b1f-546f95fe0297.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"Screen Shot 2017-11-08 at 3.11.35 PM\" border=\"0\" height=\"400\" src=\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/369f17bc-6b2a-4cd9-8b1f-546f95fe0297.png\" style=\"border: 0px currentcolor; border-image: none; display: inline; background-image: none;\" title=\"Screen Shot 2017-11-08 at 3.11.35 PM\" width=\"250\"\/><\/a><\/p>\n<p><a href=\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/6a45909f-fbe6-443c-9f38-a26c881870d2.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"Screen Shot 2017-11-08 at 3.00.29 PM\" border=\"0\" height=\"270\" src=\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/6a45909f-fbe6-443c-9f38-a26c881870d2.png\" style=\"border: 0px currentcolor; border-image: none; display: inline; background-image: none;\" title=\"Screen Shot 2017-11-08 at 3.00.29 PM\" width=\"800\"\/><\/a><\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p>Final design of a dialog for an Android device<\/p>\n<p><strong><a href=\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/d78c3f31-a986-45a3-8e6b-d19bdc9ef06a.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"IMAGE01\" border=\"0\" height=\"444\" src=\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/d78c3f31-a986-45a3-8e6b-d19bdc9ef06a.png\" style=\"border: 0px currentcolor; border-image: none; display: inline; background-image: none;\" title=\"IMAGE01\" width=\"250\"\/><\/a><\/strong><\/p>\n<p>\u00a0<\/p>\n<p>To create an Android style dialog &#8211; load the image labeled Android_Dialog.png from the Android<em> <\/em>folder which can be found in the documents attached to this blog post. The image has a drop-shadow and rounded corners (pre-styled for easy access), adjust the size of the image to 552 wide x 250 high and center the image to the page vertically and horizontally. The size of your dialog will change based on how much content you need, this app is promting a single question so the dialog does not need to be large. Then, simply add in the message or question you are prompting to the user by inserting a label control with the following settings shown in the image below. Please note you are welcome to use the same label control properties you have already been using within your app to stay consistent on fonts and font sizes (its best to avoid using more than 4 font sizes in a single app).<\/p>\n<p><a href=\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/a9423661-28a5-472e-a3dd-f475148791ec.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"androidtext\" border=\"0\" height=\"1875\" src=\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/a9423661-28a5-472e-a3dd-f475148791ec.png\" style=\"border: 0px currentcolor; border-image: none; display: inline; background-image: none;\" title=\"androidtext\" width=\"250\"\/><\/a><\/p>\n<p>\u00a0<\/p>\n<p>Then, insert another label control to create the blue text buttons and set the properties of that control to\u00a0(both text buttons should follow these properties):<\/p>\n<p><a href=\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/8c2d3321-75bb-4288-b0bc-be0d621f1ab8.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"textbutton-iphone\" border=\"0\" height=\"2000\" src=\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/8c2d3321-75bb-4288-b0bc-be0d621f1ab8.png\" style=\"border: 0px currentcolor; border-image: none; display: inline; background-image: none;\" title=\"textbutton-iphone\" width=\"250\"\/><\/a><\/p>\n<p>\u00a0<\/p>\n<p>To hide and show these elements that make up the dialog (the rectangle image, the text, the text buttons, and the background overlay) use a context variable which switches its state between true and false values. We will bind this context variable to the Visible property of all the elements which make up the dialog in a few easy steps shown below.<\/p>\n<p>\u00a0<\/p>\n<p>1. On the <strong>OnVisible<\/strong> event of the page BranchDetailsScreen (seen below), set the property to:<\/p>\n<p>UpdateContext({showPopup:false})<\/p>\n<p>This will ensure that any element with a Visible property of showPopup won&#8217;t be displayed unless specified<\/p>\n<p><a href=\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/981a4495-1553-463d-a93a-16a678e7e7a6.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"hjkl\" border=\"0\" height=\"444\" src=\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/981a4495-1553-463d-a93a-16a678e7e7a6.png\" style=\"border: 0px currentcolor; border-image: none; display: inline; background-image: none;\" title=\"hjkl\" width=\"250\"\/><\/a><\/p>\n<p>\u00a0<\/p>\n<p>2. Select the controls that make up the dialog and set the <strong>Visible<\/strong> property of all of them to showPopup<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"IMAGE03\" border=\"0\" height=\"118\" src=\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/5695d444-0103-4095-9665-89346fb76eec.png\" style=\"border-color: currentcolor; display: inline; border-image-source: none; background-image: none;\" title=\"IMAGE03\" width=\"250\"\/><\/p>\n<p>\u00a0<\/p>\n<p>3. On the <strong>OnSelect<\/strong> event of the Delete button on the form, add the following:<\/p>\n<p>UpdateContext({showPopup:true})<\/p>\n<p><strong style=\"font-style: normal;\"><a href=\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/bb29a834-6ede-42b3-8f65-7a76553bde8c.png\" style=\"text-decoration: underline;\"><img loading=\"lazy\" decoding=\"async\" alt=\"IMAGE4\" border=\"0\" height=\"333\" src=\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/bb29a834-6ede-42b3-8f65-7a76553bde8c.png\" style=\"border-color: currentcolor; display: inline; border-image-source: none; background-image: none;\" title=\"IMAGE4\" width=\"800\"\/><\/a><\/strong><\/p>\n<p>\u00a0<\/p>\n<p>4. Test by clicking on the Delete button and the dialog will be displayed<\/p>\n<p style=\"font-style: normal;\">\u00a0<\/p>\n<p>5. Set the <strong>OnSelect<\/strong> event of the Delete button (the Delete button from within the dialog box not the Delete button of the form) to remove the record and close the dialog<\/p>\n<p>RemoveIf(ContosoBranchesCollect.Id = ContosoBranchesGallery.Selected.Id);<\/p>\n<p>UpdateContext({showPopup:false});Navigate(ListScreen,Fade)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"IMAGE5\" border=\"0\" height=\"237\" src=\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/f9bbe7e3-9bad-44e0-8c51-20e804c89c75.png\" style=\"border-color: currentcolor; display: inline; border-image-source: none; background-image: none;\" title=\"IMAGE5\" width=\"800\"\/><\/p>\n<p>\u00a0<\/p>\n<p>6. To make the cancel button work &#8211; which will close the dialog and not delete anything, set the <strong>OnSelect<\/strong> event of the Cancel button within the dialog to<\/p>\n<p>UpdateContext({showPopup:false})<\/p>\n<p><a href=\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/21316789-73a2-433e-bc3f-58bb2b7a77ee.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"GGGG\" border=\"0\" height=\"147\" src=\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/21316789-73a2-433e-bc3f-58bb2b7a77ee.png\" style=\"border: 0px currentcolor; border-image: none; display: inline; background-image: none;\" title=\"GGGG\" width=\"800\"\/><\/a><\/p>\n<p style=\"font-style: normal;\">\u00a0<\/p>\n<p style=\"font-style: normal;\">\u00a0<\/p>\n<p style=\"font-style: normal;\">\u00a0<\/p>\n<p style=\"font-style: normal;\">Final design of a dialog for an iPhone<\/p>\n<p><a href=\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/de4f9977-4d42-44ba-bd89-f8c084660fc1.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"Screen Shot 2017-12-15 at 1.47.34 PM\" border=\"0\" height=\"448\" src=\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/de4f9977-4d42-44ba-bd89-f8c084660fc1.png\" style=\"border: 0px currentcolor; border-image: none; display: inline; background-image: none;\" title=\"Screen Shot 2017-12-15 at 1.47.34 PM\" width=\"250\"\/><\/a><\/p>\n<p>\u00a0<\/p>\n<p>To create an iPhone style dialog &#8211; load the image labeled iPhone_Dialog.png from the iPhone folder which can be found in the documents attached to this blog post. The image is pre-styled with rounded corners. Then, simply add in the message or question you are prompting to the user by inserting a label control with the following settings:<\/p>\n<p><a href=\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/114e36bf-58e6-4d21-9a8b-b667c4ddf941.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"label-iphone\" border=\"0\" height=\"1935\" src=\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/114e36bf-58e6-4d21-9a8b-b667c4ddf941.png\" style=\"border: 0px currentcolor; border-image: none; display: inline; background-image: none;\" title=\"label-iphone\" width=\"250\"\/><\/a><\/p>\n<p>\u00a0<\/p>\n<p>Then, insert another label control to create the blue text buttons and set the properties of that control to (both text buttons should follow these properties):<\/p>\n<p><a href=\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2024\/06\/4d787e0a-6233-46b6-a60b-6ecd53f83552.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"textbutton-iphone\" border=\"0\" height=\"2000\" src=\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2024\/06\/4d787e0a-6233-46b6-a60b-6ecd53f83552.png\" style=\"border: 0px currentcolor; border-image: none; display: inline; background-image: none;\" title=\"textbutton-iphone\" width=\"250\"\/><\/a><\/p>\n<p>\u00a0<\/p>\n<p>To create the dividers, insert a rectangle and assign the following properties:<\/p>\n<p><a href=\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/665254b4-036e-4733-9fc0-e9267697c342.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"divider\" border=\"0\" height=\"1154\" src=\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/665254b4-036e-4733-9fc0-e9267697c342.png\" style=\"border: 0px currentcolor; border-image: none; display: inline; background-image: none;\" title=\"divider\" width=\"250\"\/><\/a><\/p>\n<p>Follow the same steps (1-6 described from the Android dialog) &#8211; adding in the context varibles and adjusting the Visible properties to display the dialog.<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p><a href=\"https:\/\/blogcode.blob.core.windows.net\/pablogassets\/Dialog_blog\/Assets.zip\">Attached<\/a> to this post you will find 4 apps with pre-styled dialogs for you to reference and use, an Android tablet dialog design, an iPad dialog design, an Android phone dialog design, and an iPhone dialog design. Its important to note that font sizes between Phone and Tablet will vary. Please open the tablet version of these apps for a reference.<\/p>\n<p>For a video explination please watch the video provided<\/p>\n<p>\u00a0<\/p>\n<p><iframe loading=\"lazy\" allow=\"autoplay; encrypted-media\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https:\/\/www.youtube-nocookie.com\/embed\/_Dc0wJx9EN0?rel=0&amp;ecver=1\" width=\"560\"><\/iframe><\/p>\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Adding a dialog to your app is a great way to communicate warnings to prevent or correct critical errors. Dialogs can be used in a number of ways and can be a fantastic addition to your app to ensure the best user experience. This post will go into detail about how to create and style your dialog and provide you with the tools to create your very own dialog.<\/p>\n","protected":false},"author":125,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ms_queue_id":[],"ep_exclude_from_search":false,"_classifai_error":"","_classifai_text_to_speech_error":"","_alt_title":"","ms-ems-related-posts":[],"footnotes":""},"audience":[3378],"content-type":[3423],"job-role":[],"product":[3473],"property":[],"topic":[],"coauthors":[2124],"class_list":["post-109188","post","type-post","status-publish","format-standard","hentry","audience-it-professional","content-type-tips-and-guides","product-power-apps"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Creating a dialog in PowerApps - Microsoft Power Platform Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/02\/creating-dialogs-in-powerapps\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Creating a dialog in PowerApps - Microsoft Power Platform Blog\" \/>\n<meta property=\"og:description\" content=\"Adding a dialog to your app is a great way to communicate warnings to prevent or correct critical errors. Dialogs can be used in a number of ways and can be a fantastic addition to your app to ensure the best user experience. This post will go into detail about how to create and style your dialog and provide you with the tools to create your very own dialog.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/power-apps\/creating-dialogs-in-powerapps\/\" \/>\n<meta property=\"og:site_name\" content=\"Microsoft Power Platform Blog\" \/>\n<meta property=\"article:published_time\" content=\"2018-01-02T15:01:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-11T15:10:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/369f17bc-6b2a-4cd9-8b1f-546f95fe0297.png\" \/>\n<meta name=\"author\" content=\"Veronica Ward\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Veronica Ward\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/02\/creating-dialogs-in-powerapps\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/02\/creating-dialogs-in-powerapps\/\"},\"author\":[{\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/author\/veronica-ward\/\",\"@type\":\"Person\",\"@name\":\"Veronica Ward\"}],\"headline\":\"Creating a dialog in PowerApps\",\"datePublished\":\"2018-01-02T15:01:31+00:00\",\"dateModified\":\"2025-06-11T15:10:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/02\/creating-dialogs-in-powerapps\/\"},\"wordCount\":1224,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/02\/creating-dialogs-in-powerapps\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/369f17bc-6b2a-4cd9-8b1f-546f95fe0297.png\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/02\/creating-dialogs-in-powerapps\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/02\/creating-dialogs-in-powerapps\/\",\"url\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/02\/creating-dialogs-in-powerapps\/\",\"name\":\"Creating a dialog in PowerApps - Microsoft Power Platform Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/02\/creating-dialogs-in-powerapps\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/02\/creating-dialogs-in-powerapps\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/369f17bc-6b2a-4cd9-8b1f-546f95fe0297.png\",\"datePublished\":\"2018-01-02T15:01:31+00:00\",\"dateModified\":\"2025-06-11T15:10:24+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/02\/creating-dialogs-in-powerapps\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/02\/creating-dialogs-in-powerapps\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/02\/creating-dialogs-in-powerapps\/#primaryimage\",\"url\":\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/369f17bc-6b2a-4cd9-8b1f-546f95fe0297.png\",\"contentUrl\":\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/369f17bc-6b2a-4cd9-8b1f-546f95fe0297.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/02\/creating-dialogs-in-powerapps\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Creating a dialog in PowerApps\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#website\",\"url\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/\",\"name\":\"Microsoft Power Platform Blog\",\"description\":\"Innovate with Business Apps\",\"publisher\":{\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#organization\",\"name\":\"Microsoft Power Platform Blog\",\"url\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/03\/Microsoft-Logo-e1685482038800.png\",\"contentUrl\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/03\/Microsoft-Logo-e1685482038800.png\",\"width\":194,\"height\":145,\"caption\":\"Microsoft Power Platform Blog\"},\"image\":{\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#\/schema\/person\/99c6ed0d3b569ddfd7b0cebf786e5ddc\",\"name\":\"Veronica Ward\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/87adf4a502297acf72d3476bd5634c8606e2a3aa4eaf58d5faf9a33232ffbe33?s=96&d=mm&r=gda23d1eb76d46ce28783bb75970a866f\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/87adf4a502297acf72d3476bd5634c8606e2a3aa4eaf58d5faf9a33232ffbe33?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/87adf4a502297acf72d3476bd5634c8606e2a3aa4eaf58d5faf9a33232ffbe33?s=96&d=mm&r=g\",\"caption\":\"Veronica Ward\"},\"url\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/author\/v-veward\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Creating a dialog in PowerApps - Microsoft Power Platform Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/02\/creating-dialogs-in-powerapps\/","og_locale":"en_US","og_type":"article","og_title":"Creating a dialog in PowerApps - Microsoft Power Platform Blog","og_description":"Adding a dialog to your app is a great way to communicate warnings to prevent or correct critical errors. Dialogs can be used in a number of ways and can be a fantastic addition to your app to ensure the best user experience. This post will go into detail about how to create and style your dialog and provide you with the tools to create your very own dialog.","og_url":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/power-apps\/creating-dialogs-in-powerapps\/","og_site_name":"Microsoft Power Platform Blog","article_published_time":"2018-01-02T15:01:31+00:00","article_modified_time":"2025-06-11T15:10:24+00:00","og_image":[{"url":"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/369f17bc-6b2a-4cd9-8b1f-546f95fe0297.png","type":"","width":"","height":""}],"author":"Veronica Ward","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Veronica Ward","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/02\/creating-dialogs-in-powerapps\/#article","isPartOf":{"@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/02\/creating-dialogs-in-powerapps\/"},"author":[{"@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/author\/veronica-ward\/","@type":"Person","@name":"Veronica Ward"}],"headline":"Creating a dialog in PowerApps","datePublished":"2018-01-02T15:01:31+00:00","dateModified":"2025-06-11T15:10:24+00:00","mainEntityOfPage":{"@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/02\/creating-dialogs-in-powerapps\/"},"wordCount":1224,"commentCount":0,"publisher":{"@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#organization"},"image":{"@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/02\/creating-dialogs-in-powerapps\/#primaryimage"},"thumbnailUrl":"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/369f17bc-6b2a-4cd9-8b1f-546f95fe0297.png","inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/02\/creating-dialogs-in-powerapps\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/02\/creating-dialogs-in-powerapps\/","url":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/02\/creating-dialogs-in-powerapps\/","name":"Creating a dialog in PowerApps - Microsoft Power Platform Blog","isPartOf":{"@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/02\/creating-dialogs-in-powerapps\/#primaryimage"},"image":{"@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/02\/creating-dialogs-in-powerapps\/#primaryimage"},"thumbnailUrl":"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/369f17bc-6b2a-4cd9-8b1f-546f95fe0297.png","datePublished":"2018-01-02T15:01:31+00:00","dateModified":"2025-06-11T15:10:24+00:00","breadcrumb":{"@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/02\/creating-dialogs-in-powerapps\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/02\/creating-dialogs-in-powerapps\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/02\/creating-dialogs-in-powerapps\/#primaryimage","url":"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/369f17bc-6b2a-4cd9-8b1f-546f95fe0297.png","contentUrl":"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/369f17bc-6b2a-4cd9-8b1f-546f95fe0297.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/02\/creating-dialogs-in-powerapps\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/"},{"@type":"ListItem","position":2,"name":"Creating a dialog in PowerApps"}]},{"@type":"WebSite","@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#website","url":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/","name":"Microsoft Power Platform Blog","description":"Innovate with Business Apps","publisher":{"@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#organization","name":"Microsoft Power Platform Blog","url":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/03\/Microsoft-Logo-e1685482038800.png","contentUrl":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/03\/Microsoft-Logo-e1685482038800.png","width":194,"height":145,"caption":"Microsoft Power Platform Blog"},"image":{"@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#\/schema\/person\/99c6ed0d3b569ddfd7b0cebf786e5ddc","name":"Veronica Ward","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/87adf4a502297acf72d3476bd5634c8606e2a3aa4eaf58d5faf9a33232ffbe33?s=96&d=mm&r=gda23d1eb76d46ce28783bb75970a866f","url":"https:\/\/secure.gravatar.com\/avatar\/87adf4a502297acf72d3476bd5634c8606e2a3aa4eaf58d5faf9a33232ffbe33?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/87adf4a502297acf72d3476bd5634c8606e2a3aa4eaf58d5faf9a33232ffbe33?s=96&d=mm&r=g","caption":"Veronica Ward"},"url":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/author\/v-veward\/"}]}},"bloginabox_animated_featured_image":null,"bloginabox_display_generated_audio":false,"distributor_meta":false,"distributor_terms":false,"distributor_media":false,"distributor_original_site_name":"Microsoft Power Platform Blog","distributor_original_site_url":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog","push-errors":false,"_links":{"self":[{"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/posts\/109188","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/users\/125"}],"replies":[{"embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/comments?post=109188"}],"version-history":[{"count":1,"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/posts\/109188\/revisions"}],"predecessor-version":[{"id":131137,"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/posts\/109188\/revisions\/131137"}],"wp:attachment":[{"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/media?parent=109188"}],"wp:term":[{"taxonomy":"audience","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/audience?post=109188"},{"taxonomy":"content-type","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/content-type?post=109188"},{"taxonomy":"job-role","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/job-role?post=109188"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/product?post=109188"},{"taxonomy":"property","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/property?post=109188"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/topic?post=109188"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/coauthors?post=109188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}