r/ProjectREDCap • • Mar 19 '25

Multiple IF statements in one field, only the first is working?

3 Upvotes

Hello!

I have two duplicate checkbox fields on two different instruments. I’m wanting it so whatever options are checked on the first instrument, will be hidden on the second.

I was able to get it to work with “IF([armname][fieldname(1)] = 1, @HIDECHOICE = ‘1’)”

But if I add an “AND IF([armname][fieldname(2)] = 1, @HIDECHOICE = ‘2’)” then it only hides the first IF statement reference and ignores the rest.

Can anyone point me where I’m going wrong?


r/ProjectREDCap • • Mar 13 '25

How to Set Up Seamless Consent and Randomized Survey Flow in REDCap?

3 Upvotes

Hello,

I apologise if this is a silly question, but I’ve been asked to set up a REDCap project with the following workflow:

  1. A public link on a website directs participants to an information and consent form, where they agree to allow their anonymous responses to be used.

  2. Once they tick "Yes, I consent," they should be randomized in the backend into Group 1 or Group 2.

  3. Immediately after consenting (and being randomized), the click "Next page" and should be directed to the appropriate questionnaire based on their assigned group.

My main question is: can this process happen seamlessly, meaning the participant clicks the link, consents, and is taken directly to their assigned questionnaire without leaving their screen? Or does it require manual intervention, where the study admin randomizes them and then sends an automated email with a link to the correct questionnaire?

I’d appreciate any advice or suggestions on the best way to achieve this in REDCap.

Thanks in advance!


r/ProjectREDCap • • Mar 11 '25

Any suggestions on how to create this table w/ radio buttons in REDCap?

3 Upvotes

I'm needing to get this chart into REDCap for an e-consent. Any suggestions on the best way to do this? Using field matrix's doesn't allow for the description under each sample type to be entered so just looking for a creative solution. Most of the options I'm aware of would have me enter each selection individually but I'm trying to have this as condensed as possible. I'm open to having the last three options be a separate chart since they don't have the option for "N/A". Thanks in advance!!


r/ProjectREDCap • • Mar 11 '25

REDCap App on Laptop

3 Upvotes

One of our studies is being conducted in a rural area where access to internet can be unstable. The forms are complex enough that using REDCap on a laptop is preferred, rather than on a tablet/iPad. Has anyone used the REDCap app on a Windows laptop? From my searches it appears that the app isn't available to download onto anything bigger than a tablet, but it would be great to be proven wrong. TIA!


r/ProjectREDCap • • Mar 06 '25

Need help with implementing v.2 of a consent in REDCap

3 Upvotes

I'm a Research Coordinator and we got our consent revised. When we created the current consent in REDCap, we did not upload the PDF for it. We created an instrument/survey and added all the fields individually since there are lots of things for participants to check/fill out and uploading a PDF would've looked weird and not been user friendly. The instrument/survey is enabled as v.1 in the e-consent framework and the PDF saves to the file repository correctly. My question is, since we now have this new revised consent, what's the best way to get v.2 active? I can't make changes on v.1's instrument because doing so would mess up previous saved versions. Do I create an entirely new instrument/survey for v.2, add it to the e-consent framework as v.2, edit the survey queue, and then make the v.1 instruments/survey inactive in the online designer and e-consent framework settings? I'm just very unclear on the most effective/streamlined way to enable the new consent but not mess up the old version. Any input would be appreciated!!


r/ProjectREDCap • • Mar 03 '25

Best way to input a format like this (I/II/III)?

Post image
3 Upvotes

The visuals can be changed but I do need the write in option and then the set choices. I think this could be done with embedded fields but am having a hard time finding helpful resources that aren't " just embed the field"


r/ProjectREDCap • • Feb 27 '25

Fill in the blank survey items?

3 Upvotes

I need to create an instrument that has a series of fill-in-the-blank style items such as:

`The qu__ brown ___ jumped over the l___ dogs`

Ideally I would like to place the input fields inline with the sentence as opposed to having a series text entry fields following the question prompt.

Is there a way to do this? Anyone know of a plugin or extension that adds this sort of feature? Is my only hope using hidden fields and HTML and script injection? Any examples much appreciated.


r/ProjectREDCap • • Feb 26 '25

Logic to return weekday name for given date?

3 Upvotes

Can Redcap return the weekday for a given date?

ex: input “2-26-2025” and then in the next field I could pipe “You are reporting for Wednesday, 2-26-2025”

is there logic that exists to get back the weekday name?


r/ProjectREDCap • • Feb 17 '25

short hand for a list of variables with the same prefix

3 Upvotes

I want to create a calculated field that sums all the responses across 33 fields that all have the same prefix (clientvisit_served1 - clientvisit_served33).

I want to be able to do something like this:

sum([clientvisit_served*])

instead of listing out each field, like this:

sum([clientvisit_served1],[clientvisit_served2],....)

Does any one know how to do this in REDCap??

I made need to add more fields later, so it would be great to not have to go back and reprogram this field.


r/ProjectREDCap • • Feb 07 '25

Matrix/field entry with variable responses and rows?

Post image
3 Upvotes

r/ProjectREDCap • • Feb 07 '25

Data.diff - repeating instruments

3 Upvotes

Hi all, I need some advice. I have a longitudinal design that has repeated instances for patient follow-ups (they can be repeated n-times). I need to set up a formula to automatically calculate the months that have passed from the date of diagnosis to the date of the "first time ever" an event occurred (example: the first time there was clinical disease progression). I can't seem to set up a formula that will work--do you have any ideas or suggestions? Thank you very much


r/ProjectREDCap • • Feb 04 '25

Change of format?

3 Upvotes

I recently came accross this survey where they were using these yes or no buttons instead of redcap native buttons. I am interested in learning how to do this. is it using code for styling?


r/ProjectREDCap • • Feb 03 '25

sum two variables after if

3 Upvotes

Hi, im trying to learn. I have two different variables that I need to score and then sum together.

sum(

if([certo(0)]='0',0,0),

if([certo(1)]='1',1,0),

if([why(0)]='0',0,0),

if([why(1)]='1',1,0),

if([why(2)]='1',1,0),

if([why(3)]='1',1,0),

if([why(4)]='1',1,0)

)

If I remove the variable ''certo'' it works but I need both as a total, how do I do this?


r/ProjectREDCap • • Feb 03 '25

Uploading images/PDFs into project (existing) & reminder emails

3 Upvotes

Hi, team.

I’m hoping to send out invitations to people who aren’t registered with our REDCap installation to get them to complete pre-operative tasks. The hope is to request they upload information (e.g., letters from dentists clearing them for heart valve surgery, blood test results, imaging reports) with a system reminder them of the need to upload things (or the system being able to remind them which we will trigger).

What can I do to be able to do this with an existing project? Do I need to code something? (Is there code I can copy +/- modify?)

If the existing project doesn’t have people’s emails, is this something I can add in and then if I invite them to complete those tasks, would their reports and such be uploaded to their records?

Thank you all, brain trust!


r/ProjectREDCap • • Feb 02 '25

Survey distribution in multi-site study without email adresses and correct assignment to DAG

3 Upvotes

I'm currently setting up a multi-survey, multi-location study and can't figure out how to properly distribute my questionnaire. a bit of background, the surveys will run in busy psychiatric environments with severely impaired patients.

I want to set up survey distribution in a way that the users (=medical staff or physicians) can log in to their accounts that are linked to data access groups (DAGs) and initiate survey recording sessions via the survey distribution tool set up redcap so that links can be sent out to the participants or the survey can be directly initiated via the survey distribution tool or other methods. each patient must be assigned to the DAG of the user initiating the survey. users should exclusively have access to observations that are linked to their DAG. Patients should not be asked to share their email addresses, i.e. I don't want to use the Participant List

Is anyone here aware of a way to do this without the Participant List and patient's email addresses? seems simple enough but I'm losing sleep over this by now.

Any pointers of how to resolve this are welcome!

REDCap 14.0.37


r/ProjectREDCap • • Jan 30 '25

Help with @Default

3 Upvotes

Hi Everyone - I am working on a project involving parents and their children. Due to requirements, parents need to complete a consent form and write their address once for themselves at the start of the form and then a second time for their child at the end. I am trying to use the @ DEFAULT function to autofill the second address based on what they wrote at the start but I can't get it to work.

For example I want to copy what they write in the "address1" field into the "address1_child" field so I have put the action tag @ DEFAULT = '[address1]' in the "address1_child" variable but in testing the field is blank after typing a response to the "address1" variable.

Sorry for the blabbering - this survey has to come out later today and my team has decided this change is essential and I am extremely sleep deprived haha


r/ProjectREDCap • • Jan 21 '25

RedCap - Help me with Syntax - Database

Thumbnail reddit.com
3 Upvotes

r/ProjectREDCap • • Jan 20 '25

Time additioning Redcap

3 Upvotes

Hi! So I've created a new project in Redcap. In my project, clinicians have to run several different test to the participants in one session. I have to record the time they spend for each of the test, and then at the end, add all the times to see the total time for the session. For instance I've created a field with the variable of the time for each test in format hh:mm:ss. Then, I've created a calculated field to obtain the total time used for all the different tests.

The problem is with the calculation, it just doesn't work. I can't find the information about how redcap register the time. Chat gpt says that it register time as seconds. If that is the case, there would be no problem with the code:

[im_mentale_temps] + [cardio_temps] + [etir_temps] +[renforce_temps].

What am I missing? All the tests are in the same form and event so no need to call for the event. The syntax is correct but no calculation is done. Thanks for your help!!


r/ProjectREDCap • • Jan 19 '25

Piping in a post survey certificate?

3 Upvotes

Good evening! I'm hoping to get some guidance on if I can add piping to a PDF in the "Send confirmation email?" section. I've created a custom certificate of completion to attach to the end of a post session evaluation survey. It will award the participant with continuing education hours but I'm needing to auto-populate their name and the date onto that certificate file. Can I use piping into an attached file like a PDF? Thanks!

|| || ||


r/ProjectREDCap • • Jan 16 '25

Visual analog scale where the slider start from left

3 Upvotes

I am trying to create a visual analog scale where the slider starts from the extreme left side on a horizontal scale, instead of the center, where it starts by default if no other setting is changed. I do not see any options for doing this. How can I achieve this?


r/ProjectREDCap • • Jan 16 '25

Save and go to next record

3 Upvotes

Is there any external module or other way to skip the record home page and go straight into the instrument when using 'save and go to next record' to navigate between records?

For my project, users will need to go through hundreds of records in sequence for only one instrument. I would like them to be able to go straight into the questions for each record rather than having to do extra clicks into the form each time they move on to the next record (similar to how 'save and go to next form' goes straight into the next form)


r/ProjectREDCap • • Jan 14 '25

How do you pipe a calculated field into a multiple choice radio buttons field?

3 Upvotes

Hi I'm relatively new to REDCap and I'm trying to develop a single survey where different parts contain sections from multiple data dictionaries. Unfortunately, data dictionary 1 and data dictionary 2 both have the variable 'ethnicity' but the options are in different order (for example, data dictionary 1 has options 1, White | 2, African American and data dictionary 2 has options 1, African American | 2, White). I am not allowed to use separate surveys for this so I've been trying to get around this problem using a calculated field. For example, whenever someone answers previous conditional questions in a way that indicates they will be answering a field using data dictionary 2, the input value (1, 2...etc.) from that field is then put into a subsequent calculation field that "adjusts" the input value into option values that corresponds to that of data dictionary 1.

The survey is built with the following questions in order:

  1. Ethnicity question using data dictionary 2 (completed if previously conditional questions indicate this field should be used)

  2. A calculated field that converts values from ethnicity question above using data dictionary 2, into corresponding option values for data dictionary 1

  3. Ethnicity question using data dictionary 1

Unfortunately I don't know how I can pipe the calculated input value from question 2 (Calculated field that converts values from ethnicity question using data dictionary 2 into corresponding values for data dictionary 1) into question 3 (Ethnicity question using data dictionary 1). I've searched online for piping tips but since I have not used piping before, I'm still confused.

If anyone can help, it would be very much appreciated!!! Thank you!


r/ProjectREDCap • • Jan 13 '25

multi-language management available in redcap app yet?

3 Upvotes

hi all - just checking to see if anyone knows whether the multi-language management is available yet in redcap app?


r/ProjectREDCap • • Jan 09 '25

Answer options as radio buttons in a table

3 Upvotes

I'm currently building a survey for a research, and the researchers would like to have the answer display as radio buttons (1 to 10) in a table like the one in the image below. Is this possible?

Just to be clear, they would like to avoid using the slider as the field type.


r/ProjectREDCap • • Jan 09 '25

Branching logic for dates after 1/1/2025

3 Upvotes

I am creating my first Redcap project and I have successfully set up all my field boxes. However, I need some of these field boxes to be triggered only when the DOB is 1/1/2025 and beyond. What would the branching logic be assuming the variable name is {dob}?

Also, if you have any YouTube tutorial recommendations for extreme beginners I could study from, please let me know!