Skip to main content
Microsoft logo
Power Apps
    • AI Builder
    • Automate processes
    • Azure + Power Apps
    • Build apps
    • Connect data
    • Pages
    • Take a guided tour
  • Pricing
    • Overview
    • Become a Partner
    • Find a Partner
    • Find partner offers
    • Partner GTM Resources
    • Blog
    • Customer stories
    • Developer Plan
    • Documentation
    • For IT Leaders
    • Roadmap
    • Self-paced learning
    • Webinars
    • App development topics
    • Overview
    • Issues
    • Give feedback
    • Overview
    • Forums
    • Galleries
    • Submit ideas
    • User groups
    • Register
    • ·
    • Sign in
    • ·
    • Help
    Go To
    • Power Apps Community
    • Welcome to the Community!
    • News & Announcements
    • Get Help with Power Apps
    • Building Power Apps
    • Microsoft Dataverse
    • AI Builder
    • Power Apps Governance and Administering
    • Power Apps Pro Dev & ISV
    • Power Apps Portals
    • Connector Development
    • Power Query
    • GCC, GCCH, DoD - Federal App Makers (FAM)
    • Power Platform Integration - Better Together!
    • Power Platform Integrations
    • Power Platform and Dynamics 365 Integrations
    • Community Blog
    • Power Apps Community Blog
    • Galleries
    • Community Connections & How-To Videos
    • Community App Samples
    • Webinars and Video Gallery
    • Canvas Apps Components Samples
    • Kid Zone
    • Emergency Response Gallery
    • Events
    • 2021 MSBizAppsSummit Gallery
    • 2020 MSBizAppsSummit Gallery
    • 2019 MSBizAppsSummit Gallery
    • Community Engagement
    • Community Calls Conversations
    • Experimental
    • Error Handling
    • Power Apps Experimental Features
    • Community Support
    • Community Accounts & Registration
    • Using the Community
    • Community Feedback
    cancel
    Turn on suggestions
    Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
    Showing results for 
    Search instead for 
    Did you mean: 
    • Power Apps Community
    • Galleries
    • Canvas Apps Components Samples
    • Dialog OK - Cancel with action event

    Dialog OK - Cancel with action event

    02-08-2023 03:30 AM

    PowerJester
    Frequent Visitor
    1590 Views
    LinkedIn LinkedIn Facebook Facebook Twitter Twitter
    PowerJester
    PowerJester
    Frequent Visitor
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    Dialog OK - Cancel with action event

    ‎02-08-2023 03:30 AM

    The cmpDialogOKCancel component can be used in Powerapps canvas apps and gives the possibility to display a modal dialog including: title, message, "cancel" button and "ok" button.


    Through the actions: OnSelectCancel and OnSelectOK present in the component it will be possible to execute actions based on the button selected by the user, directly on the calling screen.

    Dialog Components - OKCancel.zip
    Labels:
    • Labels:
    • Components
    Message 1 of 4
    1,590 Views
    1 Kudo
    Reply
    • All forum topics
    • Previous Topic
    • Next Topic
    carlos_briceno
    carlos_briceno
    New Member
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    3 weeks ago

    How can i make your component invisible from the start and then when i push a button in the property 'OnSelect' make it visible? 
    I have tried putting the property Visible to false from the start, but then i can't modify it.

     

    Regards.

    Message 2 of 4
    597 Views
    0 Kudos
    Reply
    carlos_briceno
    carlos_briceno
    New Member
    In response to carlos_briceno
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    3 weeks ago

    Nevermind, i got it. 😃

    Message 3 of 4
    590 Views
    0 Kudos
    Reply
    PowerJester
    PowerJester
    Frequent Visitor
    In response to carlos_briceno
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    3 weeks ago

    Hi Carlos,

     

    You have to use a false/true variable when you want to pop up dialog, then in the On_Select event of the ok / cancel buttons, set the variable back to false to hide the dialog.

    I attach the last version there was a problem with the colors buttons.

     

    Dialog Components - OKCancel.zip
    Message 4 of 4
    570 Views
    0 Kudos
    Reply

    Power Platform

    • Overview
    • Power BI
    • Power Apps
    • Power Pages
    • Power Automate
    • Power Virtual Agents

    Browse

    • Sample apps
    • Services

    Downloads

    • Windows
    • iOS
    • Android

    Learn

    • Documentation
    • Support
    • Community
    • Give feedback
    • Blog
    • Partners

    • © 2023 Microsoft
    • Follow Power Apps
    • Privacy & cookies
    • Manage cookies
    • Terms of use
    • Trademarks
    Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices