Hi all,
Been wrapping my head around the following situation but can't seem to solve it.
On my screen I have a form, which contains a datefield and two textinput fields. All good.
Next I have a vertical gallery containing articles a user can select by checking a checkbox.
Upon check, the article is stored in a collection.
I have a second blank gallery which shows the articles from the collection. It contains an text label to show the article name.
Some articles need to receive a Best Before date, so in the edit gallery I have inserted a date picker to select the best before date.
Once that is done, I save the form with a save button submitform and in the onsuccess property of the form I patch the article name and bestbefore date to a Sharepoint list.
When I go back to my previous screen, then select a new session to record articles with best before dates, the BestBefore.SelectedDate still shows the date which I patched to Sharepoint.
I want that SelectedDate to be Blank after the patch but I can't seem to manage that.
Reset does not work if it's outside of the gallery, if I insert a button in the gallery and set the onselect to Reset it still does not work.
I put a text label in the gallery to show the selecteddate. Strangely it shows the date from the patched record, but if I evaluate the textlabel it shows BestBeforeDate.SelectedDate is Blank...
That's why the error message I included below the date field to show Date missing in case selected date is Blank is also not working since it seems to think it's still somewhere. See also picture.
Any idea how to tackle this? End goal is that I make the user aware that a Best Before date still needs to be added if it's empty.

To make it even more strange, If I select my textlabel where I have the error text to populate and e.g. remove the most right closing ) and then type the ) again, the error message pops up again.
Seems to be some timing thingy but no clue. Anyone?