At the top of my form, I have a user defined field for the last date in a given week (Saturday)in the format MM/DD/YYYY. Below that there I have the days of the week (Sunday through Saturday). In this table each day should correspond with it's numerical counterpart.
For example, Saturday would be the user defined date, Friday would be the user defined date - 1, Thursday would be the user defined date - 2, etc.
So far I have a calculation in the "populated" area as FormCalc (where 'week' is the user defined date):
if(HasValue(week) then
$.rawValue = Num2Date( Date2Num(week) - 1) )
else $.rawValue = ""
endif
With the current formula, I get nothing, no errors or calculations.
Additionally I'd like the autopopulated date to be in the format of MM/DD rather than MM/DD/YYYY.
Any Suggestions?