Create a Re-Enter Email Address for REDCap Survey
Purpose: Provide step-by-step instructions for creating a re-enter email address that must be equal to the first email field in order for the survey respondent to submit or move forward with the survey.
Demonstration Video
Step-by-step instructions
Create a text field with email validation
Copy the field and add Re-enter email to the Field Label
Create a checkbox field
Field Label: a message telling the user they cannot move forward unless the email fields match
Choice: enter 1,
Field Annotations / Action Tags: @HIDECHOICE = '1'
Required: Yes
Hiding the only choice on a required checkbox field will cause an error message to appear if the survey respondent hits “Submit” or “Next Page” when this field is present due to the branching logic below
Add branching logic to the checkbox field so that it appears when the email fields are not equal to each other
Most simple version: [email] <> [email_2]
Logic in plain language: Checkbox field appears when the email address in the field email does is not exactly equal to the email address in the field email_2
Checkbox field appears when both fields are blank: ([email] <> ““ and [email_2] <> ““) or ([email] <> [email_2])
Logic in plain language: Checkbox field appears when both email fields are blank (so it will be present when arriving on the survey page), AND when the email fields are not equal to each other. The message will persist until both fields are not blank and both fields are equal.
Submit a REDCap Ticket if you have questions