Is it possible to prefill dropdowns from previous instance in REDCap?

16 views
Skip to first unread message

el_ da

unread,
Mar 23, 2026, 11:14:50 AM (10 days ago) Mar 23
to redcap open

Hello REDCap experts,

I am working with an event that contains a repeating instrument (#instance). Within this form, I have a dropdown field listing lesion sites (e.g., 1 = Brain, 2 = Lung, 3 = Bone, etc.).

These lesions need to be assessed multiple times, and I would like the selected value to be carried forward from one instance to the next when a new instance is created (+). For example, if I select a value in instance #1, I would like that same value to already be selected by default in instance #2, and so on for subsequent instances.

I tried using the @DEFAULT action tag with the syntax:
@DEFAULT="[previous-instance][variable_name]"
but it does not seem to work.

To clarify, I need this field to remain a dropdown menu with predefined lesion sites (I planned for up to 10 sites, as suggested by the clinician), because the number of lesions may vary across instances. For example, there may be 1–2 lesion sites in instance #1 and #2, but a new lesion site could appear in instance #3, and possibly another in instance #4. Therefore, I cannot simply fix the lesion sites based only on the first assessment (instance #1).

Could anyone advise on how to achieve this? Is there a specific external module that I should be using? I have already tried enabling the Auto Populate Field module, but it did not solve the issue.

I am also wondering whether this is simply not possible in REDCap—perhaps it only works with text fields and not with dropdown fields?

Thank you in advance for any help!

Elda

David Edwards

unread,
Mar 23, 2026, 11:37:05 AM (10 days ago) Mar 23
to el_ da, redcap open
Hi Elda,

I can't answer all your questions, but I just wanted to point out it should be [variable_name][previous-instance] - not sure if that will work though.
If that doesn't work, maybe try this instead:
[variable_name:value][previous-instance] 

Cheers,
David.

From: redca...@googlegroups.com <redca...@googlegroups.com> on behalf of el_ da <elda....@gmail.com>
Sent: 23 March 2026 15:14
To: redcap open <redca...@googlegroups.com>
Subject: [REDCap Open] Is it possible to prefill dropdowns from previous instance in REDCap?
 
--
You received this message because you are subscribed to the Google Groups "Redcap Open" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redcap_open...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/redcap_open/CAAEqAb3GXNgy%3DfXtik8tj_MYvHe3-%2B8fReOE_BtB5UWNMHzbhw%40mail.gmail.com.

Christopher Evans

unread,
Mar 23, 2026, 5:36:12 PM (10 days ago) Mar 23
to el_ da, redcap open, David Edwards
Hi Elda, 

As David suggested, this works for me: @DEFAULT='[dropdown_test:value][previous-instance]'

E.g. The variable [dropdown_test] is a drop-down field (in a repeating instrument) with blue, yellow, red as the choices. If I select 'blue' in instance #1, then when I create instance #2, 'blue' will be pre-populated.

Also, you might want to check out the Instance Table module, it could be helpful for tracking/interacting with lesion data you collect. 

image.png

Reply all
Reply to author
Forward
0 new messages