Hi. I am transitioning our SharePoint from InfoPath to a PowerApps custom form. One thing I'm still struggling with is implementing a rule in my custom form that I had in the InfoPath form.
The rule was if my Status field = "Closed" set my ClosedDate field to Now(). I then had a second rule that said if my Status field = "Open" set my ClosedDate field to "".
I tried putting this in the default for my ClosedDate field: If(DataCardValue21.Selected.Value="Closed",Now(),"")
That works but of course if we open an existing closed item, it updates the date to today. This date should only populate or update if we change the selected value in the status field to Closed. And if it's set to Open, it needs to clear the date out.
I'm guessing I need something in the Status onChange property but not quite sure what. I appreciate some advice. Thank you!