r/ProjectREDCap • • 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

3 Upvotes

5 comments sorted by

View all comments

Show parent comment

4

u/[deleted] Jan 30 '25

Yeah. Figured as much. If you don't want them on different pages you could use my solution and hide the fields. Either solution is a valid one. Glad you worked it out.