Announcements
I have a combobox DataCardValue1 that has an Open or Closed Value. If the value is Open it hides DataCardValue2 which is a Date Picker.
If they switch the record back to open I need to remove/reset the date entered in DataCardValue2. Is there a way to do this?
Thanks.
Hi @kbashaw,
The following code in the DefaultDate property of DataCardValue2 should do the trick:
If( DataCardValue1.Selected.Value = "Closed", Parent.Default )
It will patch a blank value and overwrite any previously saved date value once they submit the form with status = "Open". (Given that the Update property of DataCard2 is still the default DataCardValue2.SelectedDate)
If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.
Thanks!
The Update property of DataCard2 is still the default DataCardValue2.SelectedDate
I tried it but it still doesn't clear the previous date.
It looks like it's removing it from the datacard but not in Sharepoint. When I tried:
If(DataCardValue1.Selected.Value = "Open",Parent.Default)
In the If statement, DataCardValue1.Selected.Value should be equal to "Closed" (see initial code). If you want to use 'is equal to Open' try:
If( DataCardValue1.Selected.Value = "Open", //If open, reset to blank Blank(), //Else display the saved value Parent.Default )
I've tried both ways and it still doesn't clear the date. I am able to change between Open, Close change the dates and the patching works. The data field just won't clear.
@kbashaw ok I may have found the issue:
In addition to my previous code in the Default property, could you add the following code to the OnChange of DataCardValue1:
Reset(DataCardValue2)
I added the OnChange code and tried it with both of the variations above. It still won't clear the date. I also tried a few other records.
@kbashaw,
I unfortunately am unable to recreate the issue. I tested via the following steps:
I can't use a SubmitForm function, I need to patch this data. Although I do have a SubmitForm button just to test what will update and the date didn't update with that one either.
Thank you for the additional information!
Is Formula-error level management turned on in your app settings? In recent apps this will probably be on by default. Should this be off, that could explain the issue we are facing.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 401 Most Valuable Professional
11manish 201 Super User 2026 Season 2
MS.Ragavendar 128 Super User 2026 Season 2