cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
Super User II
Super User II

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


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 

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
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (46,299)