Hello everyone, I asked this question previously at https://community.esri.com/t5/arcgis-survey123-questions/disabling-mode-edit-links-for-specific-forms-once/m-p/1694610#M65867 but am creating a new post to restate my question in a better way. My ultimate objective is to create a constraint where respondents with an editing link are unable to make changes to their answers once 30 days have passed since their initial submission date.
To do this, I want to use conditional readonly statements. I am currently testing the configuration of this, and do not want to wait 30 days to see if this would work, so for testing I am trying to create a condition where I am unable to edit my survey responses via the editing link if I submitted the survey less than one day prior.
However, no matter what I try, the readonly conditional statements will not evaluate to TRUE and the editing links still allow for changes to be made. My current workflow is creating an end type question named submission_date that retrieves the submission date and time. Then, a days_past integer question with the calculation int(now() - ${submission_date}) retrieves the numbers of days that have passed since submission. I have set readonly conditional statements for all the questions as ${days_past} < 1 and pulldata("@property", 'mode') = 'edit'. I have also tried with the &forceRecalculate=days_past parameter added to the editing URL. This has not worked and I am still able to edit my responses. My thinking was that if this test worked properly, I could replace my conditional statements with ${days_past} > 30 and pulldata("@property", 'mode') = 'edit'.
The only thing that prevents me from editing my responses via the editing link is setting the readonly column to TRUE. However, my ultimate goal is to make it so that the readonly column only evaluates to TRUE after 30 days since submission. Is there something obviously wrong that I am missing? It just seems like the readonly conditional statements aren't evaluating correctly. Any help would be appreciated.
EDIT: I have seen old posts talking about how survey123 webforms can't support formulas in the readonly column (https://community.esri.com/t5/arcgis-survey123-questions/does-the-survey123-web-app-support-readonly/td-p/806469). Is this still true? If so then that would probably be the reason this isn't working... are there any workarounds to this? If not, then I will likely have to hide all my questions using the visible column, using the conditional statement ${days_past} < 30.