cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Helper I
Helper I

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

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
Helper I
Helper I

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (5,206)