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 / Can value be changed d...
Power Apps
Answered

Can value be changed depending on a property of another datacard?

(0) ShareShare
ReportReport
Posted on by 25

I would like to set a checkbox to the default value when DisplayMode of another datacard is Disabled. The DisplayMode of the datacard depends on several conditions.  Any suggestion would be appreciated!

Categories:
  • ganeshsanap Profile Picture
    1,555 on at

    @niga Create a variable, set it's value as per you requirements, based on "several conditions".

     

    Then you can use this variable at both the places, to set the display mode of datacard as well as default value of checkbox, like:

     

    If(myVariable = "DisableCard", DisplayMode.Disabled, DisplayMode.Edit)

     

    Similarly you can use condition based on variable to set the default value checkbox.

     

    Microsoft documentationUnderstand canvas-app variables in Power Apps 


    Please click Accept as solution & ‌‌👍 if my answer helped you to solve your issue. This will help others to find the correct solution easily. If the answer was useful in other ways, please consider giving it ‌‌👍

  • niga Profile Picture
    25 on at

    Thank you for your response. But I'm still struggling.

     

    Could you tell me where I can set a variable? If I understand correctly, particular kinds of "action" (such as OnSelect of a button) are necessary to set a variable. Is this correct? I

    have no such kind of "action" type control.

     

    What I want to do is to set a value of a checkbox to the default value when a property (a DisplayMode in my case) of a datacard is a specific value (Disabled, for example), but I don't want to do anything when the property is the other value (like Edit).

     

    If there is a way to set a value of a checkbox triggered by the change of a property of a control, that would also work for my case, probably.

     

     

  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @niga ,

     

    I think a good way is to insert a Timer control into the datacard.

    v-xiaochen-msft_0-1612767027823.png

     

    1\ Set the Timer control 's OnTimerEnd property to:

    If(Title_DataCard1.DisplayMode=DisplayMode.Disabled,Reset(Checkbox1))

     

    2\ Set the Timer control 's other propertyies to:

    2.PNG

     

    Best Regards,
    Wearsky
    If my post helps, then please consider Accept it as the solution to help others. Thanks.

     

  • niga Profile Picture
    25 on at

    That works!  Thanks!

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 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard