Valid if date selected is on specific day

Hello,

This part of my app allows users to input timesheets. Each day of the week has its on view and sheet. Users have been inputting incorrect dates, ones that are impossible. such as 15/4/20 as a Sunday (Aus). which it is not.

I am trying to create a valid if expression that only allows a user to input specific date dependant on the day the form is built for.
This expression is built for Wednesday:
[Date_We] = (TODAY() - WEEKDAY(TODAY()) + 4 - 7)
This expression was built to allow the correct day for the previous week. (A situation in which users forgot to put in a previous timesheet and are doing it after that day) It works perfectly for this but it does not allow the user to put in todays date when it should be correct.

Any ideas?

Solved Solved
0 2 352
1 ACCEPTED SOLUTION

You have a table for each day of the week? So you can store the WEEKDAY() value per table. Call it โ€œxโ€

Set a valid_if like:

WEEKDAY([_THIS]) = x

View solution in original post

2 REPLIES 2

You have a table for each day of the week? So you can store the WEEKDAY() value per table. Call it โ€œxโ€

Set a valid_if like:

WEEKDAY([_THIS]) = x

Perfect!
Thank you for that very simple solution

Top Labels in this Space