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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / "Are you sure that are...
Power Apps
Answered

"Are you sure that are you want to submit this form?" Yes or No

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am new to power apps and i would like to create a popup message asking:

"Are you sure that are you want to submit this form?" Yes or No

how can i do this?

Categories:
  • seadude Profile Picture
    1,855 on at

    Hi @Anonymous ,

    Welcome to PowerApps. I also do this in all my apps.

    Here is the simplest way I've found:

    - Insert a Label Control (or HTMLtext Control) and stretch it across any Buttons the user could click

    - Populate it with your text ("Are you sure?", etc.)

      - To get real spiffy, use a Switch or If function to change the text depending on various scenarios in your application!

    - Set its Fill Property to RGBA(255,255,255,.90) for that "See through" effect

    - Set its Visible Property to varOverlay

      - Trigger this variable by someone clicking "Cancel" or the the Back Arrow in your app

      - Example: OnSelect of the "Cancel" button; Set(varOverlay, true)

    - Add two buttons to the Overlay: "Cancel" (again) and "Yes"

    - OnSelect of the "Yes" button, trigger all your dangerous logic

    - OnSelect of the "Cancel" (again) button, Set(varOverlay, false)

     

    Here is the harder way (but better for reuse):

    - Create a Component so its reusable across apps!

     

    Good luck!!

  • Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    Here's an article that explains how to make a Popup form for a mobile app. 

    https://powerapps.microsoft.com/en-us/blog/creating-dialogs-in-powerapps/

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @seadude  I would like a pop up message in a small windows

    is it the same procedure?

  • seadude Profile Picture
    1,855 on at

    Maybe the attached will illustrate better.

    - Download the app below

    - Go to web.powerapps.com

    - Click Apps

    - Click Import

    - Select the downloaded app

    Good luck!

  • v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    A label control that @seadude mentioned is a text control,  it can show the message that you want to show to the users, so this could be the windows. Then you can make this text control only visible when user click on the submit button. This makes this label control a pop up windows.

     

    Regards,

    Mona

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at
    Hello Guys

    After a couple of Tentatives I was able to show de question after click the submit button and then I can now select yes or no. If yes do for me is submitted if not the form go back to the main screen .
  • seadude Profile Picture
    1,855 on at

    Nice work

  • Nicole0117 Profile Picture
    21 on at

    Hi! How did you do it? I've been trying to figure it out too!

  • RayPooley_1951 Profile Picture
    2 on at

    In the page Head

    <script type="text/javascript">
    function subform() {
    if (confirm("Are you sure?")) {
    document.getElementById("formname").submit();
    }
    }
    </script>

    In the page Body


    <form id="formname" method="post" onclick="javascript&colon;subform();return false;">
    <button type="submit">Submit</button>
    </form>

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard