cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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
Anonymous
Not applicable

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 @Anonymous ,

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 

Anonymous
Not applicable

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

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (4,839)