Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Update Property

(0) ShareShare
ReportReport
Posted on by 278

Is there a way to update another objects property from another?  

 

I have trash Icon, once it is clicked I would like another object, a button, to have a Visible value of true.  How can ou access another objects property? 

Categories:
  • Verified answer
    Drrickryp Profile Picture
    Drrickryp on at
    Re: Update Property

    Hi @duncant 

    You do that with the UpdateContext() function applied to the first button to set a variable.  You then use the variable to make the second button's visible property either true or false.  So for example make the first button's OnSelect property

     

    UpdateContext({var:true})

     

     and make the second button's Visible property  "var".  (without the ").  Set the var property to false as a default in the OnVisible property of the screen. (UpdateContext({var:false}). 

    To toggle the visibility of the second button you can set the first button's OnSelect property as UpdateContext({var:!var}).  If you play around with it you will see how it works. 

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard