Hello!
I am struggling with entering dates and the conditional logic in this difficult scenario.
In a repeatable section, I am trying to make sure you can enter a 'tool used date' that is the same date or prior date as the 'calibration due date'. The issue I am running into is using the Date Selector question, you can only use past or future date-but past does not allow us to use the current date. In most cases we will be using the current date, but the past date could be used.
I tried to add a question for 'tool used today' with yes/no answers. Where 'yes' would date stamped todays date in a Date Stamp question, and 'no' would allow to enter a date in the past in a Date Selector question.
Then a string concatenate question the two dates (either the Date Stamp question or the Date Selector question) into one field so only one date will display with no blank fields in the table. However, if we have multiple tools, where one date is in the past and one is today, the string concatenation displays both dates.

In the repeatable section, I also compare the 'calibration date' and 'tool used date', to ensure we are compliant and not using overdue tools. (this is the 3 bottom questions in the image above, 'Tools Completed' 'Total Tools' and 'TestPercentageTools') The conditional logic (in the image below) provides a count if there is a row, that all information is entered and a count if the 'tool used date' is equal to or prior to the 'calibration due date'.


Requirements: All the questions need to be answered, 'tool used date' has to be same or before the calibration used date, and have no blank fields. I have this in a repeatable section because we could have multiple tools depending on the instrument selected, and for tools to be added or removed on the fly. Tools are brought into the form via a Schema.
Is there another way to solve this issue inside the repeatable table? Maybe I am going about this the wrong way, making it more complicated than it should be!
Thank in advance for any assistance!
------------------------------
Andrea Jones
Application Analyst
Exact Sciences
WI
------------------------------