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 / Reset datacard values ...
Power Apps
Answered

Reset datacard values when Combobox value is changed

(0) ShareShare
ReportReport
Posted on by 55

Hello, 

I'm trying to create a formula where DataCard values will reset when the selection in a ComboBox is changed.

Currently, I have a ResetControl = True on all of the DataCard values, for when the Form is submitted, it would reset the values:

 

In the Edit Form OnSuccess property: Set(ResetControl,true);Set(ResetControl,false)

In the Datacard value Reset property: ResetControl = true


I found a solution by adding this (below) formula to the OnChange property of the ComboBox. Still, it is not working with the ResetControl formula I already had in the Reset property.

ComboBox OnChange formula: UpdateContext({ resetVar: true }); UpdateContext({ resetVar: false })
Error on the Reset property for the DataCard values: ResetControl=true; resetVar

How can I make this work?

Categories:
I have the same question (0)
  • Verified answer
    BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    Hi @FranciscoSaba ,

     

    Since the Reset property is declarative, you can't chain formulas. Instead you have to use logic operators:

     

    ResetControl || resetVar

     

    *Also you don't need to use "= true" since the value of ResetControl is a boolean in itself and will be accepted as such.

  • Adam1986 Profile Picture
    139 on at

    hi @FranciscoSaba,

    maybe try to use 

    ComboBox.OnChange =

     Reset(DataCardValue1) ; Reset(DataCardValue2);...;Reset(DataCardValueX) 

     

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard