Hello all, I have a situation in a Canvas App using a date picker where I want to display a message if a user chooses a date that already appears certain number of times in a SharePoint list column. This message asks the user to choose another date. I found this great formula to filter and count appearances of a selected date picker date, and it seems to work well in the Visible property:
If(CountRows(Filter('Correspondence/Mail Request Tracker',DataCardValue111.SelectedDate in Text ('ColumnTitle')))<6,false, true)
If the user chooses a date that already appears in the column 6 or more times, my label successfully displays ("This day is fully booked - please select another date"), and when the user selects a date with fewer than 6 occurrences in that column, the message becomes hidden.
Here's the problem: After submitting the form, the text label is displaying - before any date is selected in the date picker. All other similar hidden items in the app are resetting correctly (beginning as hidden), but this label doesn't want to default to hidden display when beginning the form. Could it be something to do with the Count Rows/Filter formula?
Thanks for any help!
@datepicker @countrows