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 / 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:
I have the same question (0)
  • ganeshsanap Profile Picture
    1,551 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
    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

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard