- {form.formState.errors.participantCode.message} -
- )} -- Unique identifier for this participant within the study -
-+ {form.formState.errors.participantCode.message} +
+ )} +- {form.formState.errors.name.message} -
- )} -- Optional: Real name for contact purposes -
-+ {form.formState.errors.name.message} +
+ )} +- {form.formState.errors.email.message} -
- )} -- Optional: For scheduling and communication -
-- {form.formState.errors.studyId.message} -
- )} - {mode === "edit" && ( -- Study cannot be changed after registration -
- )} -+ {form.formState.errors.email.message} +
+ )} +- {form.formState.errors.age.message} -
- )} -- Optional: Age in years (minimum 18) -
-- Optional: Gender identity for demographic analysis -
-+ {form.formState.errors.studyId.message} +
+ )} ++ {form.formState.errors.age.message} +
+ )} +{String(name) || "No name provided"}
+{email}
++ {consentGiven + ? "Participant has signed the consent form." + : "Consent form has not been recorded."} +
+- {form.formState.errors.name.message} -
- )} -+ {form.formState.errors.name.message} +
+ )} +- {form.formState.errors.description.message} -
- )} -- {form.formState.errors.institution.message} -
- )} -+ {form.formState.errors.description.message} +
+ )} +- {form.formState.errors.irbProtocolNumber.message} -
- )} -- Optional: Institutional Review Board protocol number if applicable -
-+ {form.formState.errors.institution.message} +
+ )} ++ {form.formState.errors.irbProtocolNumber.message} +
+ )} ++ Optional: Institutional Review Board protocol number if applicable +
+