cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ArmanShafiee
Helper I
Helper I

Clear a datacardvalue when another is changed

Hi, 

Simple question here. 

How can I clear, for example, a DataCardValue1 when the DataCardValue2 is modified ?

I tried to set the Reset property of my DataCardValueon ResetControl, and then set the OnChange property of DataCardValueon Set(ResetControl;true) but it doesn't work. 

Thanks for your answers. 

Arman 

1 ACCEPTED SOLUTION

Accepted Solutions
ArmanShafiee
Helper I
Helper I

Hi @v-siky-msft @iAm_ManCat ,

It appears that when personalizing the forms in PowerApps, the formulas won't work.

However, I've created an app and it works with the following property: 

DataCardValue1 : OnChange -> Reset(DataCardValue2)

Since my form is going to be filled through the app, this solution is okay for me.

Thanks again for your help.

Arman

 

View solution in original post

3 REPLIES 3
iAm_ManCat
Super User
Super User

Could you try setting to false then to true, like

Set(ResetControl; false) Set(ResetControl; true)

 

 

@iAm_ManCat


Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


v-siky-msft
Community Support
Community Support

Hi @ArmanShafiee ,

Rest can only reverts to its default value. If you want to clear it, please try this:

 

Modify the Default property of DataCardValue1 to 

If(ResetControl,Blank(),Parent.Default)

Then when the form is submitted or Reset, set the ResetControl to false to show the default value.

Hope this helps.

Sik 

ArmanShafiee
Helper I
Helper I

Hi @v-siky-msft @iAm_ManCat ,

It appears that when personalizing the forms in PowerApps, the formulas won't work.

However, I've created an app and it works with the following property: 

DataCardValue1 : OnChange -> Reset(DataCardValue2)

Since my form is going to be filled through the app, this solution is okay for me.

Thanks again for your help.

Arman

 

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,059)