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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Control visibility wit...
Power Apps
Answered

Control visibility with a buttons "AutoDisableOnSelect"

(0) ShareShare
ReportReport
Posted on by 103

Can you use a buttons AutoDisableOnSelect to control other things?

 

I like visual confirmation that something is happening and would like to add a 70% transparent rectangle over a gallery item, but I want the visibility to change with the buttons "AutoDisableOnSelect" action. Basically, when the button goes disabled while a patch process is running I want the rectangle to be visible, and when the button goes back to edit I want the rectangle visibility set back to false.

 

I know I can do this via timers, but then you're stuck with whatever time you set. Some buttons processes are fast, some take longer.

Categories:
I have the same question (0)
  • Verified answer
    MudassarSZ365 Profile Picture
    591 on at

    Hi @wwmn ,

    Set a variable on button select: Set(varProcessing, true)
    Use that variable to control the visibility of the rectangle: Rectangle.Visible = varProcessing
    Once your process is complete, set the variable to false: Set(varProcessing, false)

    If you think my solution is helpful for you, then please accept it. 😊

  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @wwmn,

     

    You will have to use variables to keep track of the processing state. I have added an example below:

    //Button OnSelect
    Set(varLoading, true);
    <your code here>
    Set(varLoading, false)

     

    //Rectangle Visible property
    varLoading

    This approach is often used when working with custom loading spinners.

     

    If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.

    Thanks!

     

  • wwmn Profile Picture
    103 on at

    Well crap, it never occurred to me to just use variables before and after the patch function.. I was thinking too deep!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard