I would like to limit users from editing a form and resubmitting by only allowing them to submit a survey the same week they collected the data.
Currently I am taking the end type date and comparing it with the today() date to make the form read-only.
if(format-date(${today},'%W') = format-date(${enddate},'%W')
I now realize that %w does not work in calculation so the today() does not recalculate when the form is reopened in the sent folder.
Is there an alternative to this? Maybe with a constraint? I am not sure how to get the last date of the week the initial survey was collected.