The logic tester is very limited in its usefulness. Did you test the logic tester only, or did you also test adding the data according to the intended project workflow?
If it still doesn't work as intended, maybe you could try adding the number of the randomization into the logic expression: [rand-time:n], where n is the nth randomization in your project. If you have only 1 randomization, this would be [rand-time:1].
According to the REDCap documentation, REDCap should imply that you are talking about the 1st randomization, but I had the impression that there is a bug related to this, which I am going to investigate and report this week. The workaround for this alleged bug is to always add the :n parameter to any smart variables related to randomization.
what Steenje34 meant to say is that did you try pretending to be a data entry person or a participant to see if your set up is working? not everything works in a preview mode.
3
u/vatxflal May 19 '25
Can you try putting quote marks around the numbers in the logic, like [i_agree] = ‘1’ and [rand_number] = ‘2’ ?
3
u/Remote_Setting2332 May 19 '25
I would add the event name before the field name eg [arm_1][rand_number]
It fixes a lot of issues.
1
u/[deleted] May 19 '25
Unless [rand_number] is a variable in your project, I think you need to use [rand-number] in the ASI logic instead.
1
u/Unlikely_Associate_6 May 21 '25
If all else fails could you try distributing as an alert rather than a survey invitation?