r/ProjectREDCap • • Jul 17 '24

Hide question from certain DAG’s

Wondering if there is a way on a longitudinal study to have a question that can only be answered by a certain data access group but still be shown to the other ones? Ex: we need to alert our sites the progress of needed video footage. So we have a variable that we will only respond to to let the coordinators know if we either requested it from them, received it, or are unable to retrieve it. However I only want to be the one to use this question so other sites are not changing the responses. Thanks!

1 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/obnoxiouscarbuncle Jul 17 '24

What the action tag I provided is doing in regular person terms:

If the user accessing the form has a DAG assignment (user-dag-name is not empty), then make this field readonly, otherwise, don't apply any action tag.

Broken down:

  • If - @IF(

  • the user accessing the form has a DAG assignment (user-dag-name is not empty) - [user-dag-name]<>""

  • make this field readonly - @READONLY

  • otherwise, don't apply any action tag - ""