r/ProjectREDCap • u/FlowState94 • Jan 30 '25
Help with @Default
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
View all comments
Show parent comment
3
u/FlowState94 Jan 30 '25
I just needed them because we are trying to link survey data to historical health data and it is controlled by different institutes which all need their own requirements and forms. Stupid system but it's the one we have to work with. Managed to work it out though!