cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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
Highlighted
Frequent Visitor

Re: Clear a datacardvalue when another is changed

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
Highlighted
Super User
Super User

Re: Clear a datacardvalue when another is changed

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


Highlighted
Community Support
Community Support

Re: Clear a datacardvalue when another is changed

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 

Highlighted
Frequent Visitor

Re: Clear a datacardvalue when another is changed

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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,413)