Hi guys,
I know how to calculate the difference between two dates when they're in the same row of a table, but can't seem to get the formula/function right when trying to use the Forms 10.1 calculations to subtract today's date from a date in a table field.
Travel Request example: Submission date = today
There's a one-row table "Departure Details" containing: destination, date, time, flight type
I need to check that the departure date is not less than 2 weeks from today.
I tried various syntaxes within the field's calculation formula along the lines of "=DepartureDate-14" and "=DepartureDate-today" and so on, trying with the INDEX and ROW references to the date cell in the table, using SUM etc, but couldn't get it to work. I'm at the stage of creating an additional "difference" field on the form that I'm populating via javascript.
Is there a better/easier way to do this?
Thanks,
Mike