Create a Re-Enter Email Address for REDCap Survey

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

  1. Create a text field with email validation

  2. Copy the field and add Re-enter email to the Field Label

  3. Create a checkbox field

    1. Field Label: a message telling the user they cannot move forward unless the email fields match

    2. Choice: enter 1,

    3. Field Annotations / Action Tags: @HIDECHOICE = '1'

    4. Required: Yes

      1. 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

  4. Add branching logic to the checkbox field so that it appears when the email fields are not equal to each other

    1. Most simple version: [email] <> [email_2]

      1. 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

    2. Checkbox field appears when both fields are blank: ([email] <> ““ and [email_2] <> ““) or ([email] <> [email_2])

      1. 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.

image-20250227-173309.png

 

Submit a REDCap Ticket if you have questions