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 / Disable the powerapp b...
Power Apps
Unanswered

Disable the powerapp button once flow has run once

(0) ShareShare
ReportReport
Posted on by 599

I have a Send Email button in Powerapps when clicked sends out email to list of users. Below is the flow for the same. 

Iantaylor2050_0-1699183057245.png

Below is the code for Send Email button and display mode. The button doesn't set to disabled even if the flow has run successfully. May i know what is the issue?

 

Send Email Button OnSelect

ForAll(
 Gallery4_2.AllItems,
 'SendEmail'.Run(
 Label6_82.Text,
 Label6_83.Text,
 Label6_85.Text,
 Label6_81.Text
 )
);
Notify(
 "Email sent successfully to all users",
 NotificationType.Success
);
Set(
 FlowResponse,
 'SendEmail'.Run(
 Label6_82.Text,
 Label6_83.Text,
 Label6_85.Text,
 Label6_81.Text
 ).success
)

 

Send Email Button DisplayMode

If(
 success,
 DisplayMode.Disabled,
 DisplayMode.Edit
)

 

Categories:
I have the same question (0)
  • Matthy79 Profile Picture
    4,188 Super User 2024 Season 1 on at

    Hello @Iantaylor2050 

     

    You set the variable „FlowResponse“ and check the variable „success“.

  • timl Profile Picture
    36,785 Super User 2026 Season 1 on at

    @Iantaylor2050 

    The DisplayMode property of your button should refer to FlowResponse.

    If(
     FlowResponse,
     DisplayMode.Disabled,
     DisplayMode.Edit
    )

     

  • M_Ali_SZ365 Profile Picture
    1,110 on at

    Hi @Iantaylor2050 

    Try This Code Send Email Button DisplayMode

    If(
     FlowResponse,
     DisplayMode.Disabled, // Condition is true - disable the control
     DisplayMode.Edit // Condition is false - control is editable
    )

    Please accept this solution if it resolves the issue. ✅
    Best regards,
    Muhammad Ali

  • timl Profile Picture
    36,785 Super User 2026 Season 1 on at

    Hi @Iantaylor2050

    Can you confirm whether the formula I posted above solves the problem?

    If(
     FlowResponse,
     DisplayMode.Disabled,
     DisplayMode.Edit
    )

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard