Skip to content

Commit 35d993a

Browse files
committed
feat: add subject display length as question in group manage form
1 parent e045e03 commit 35d993a

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

apps/web/src/features/group/components/ManageGroupForm.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,16 @@ export const ManageGroupForm = ({ data, onSubmit, readOnly }: ManageGroupFormPro
5959
},
6060
title: t('group.manage.accessibleInstruments')
6161
},
62+
{
63+
fields: {
64+
subjectIdDisplayLength: {
65+
kind: 'number',
66+
label: 'Enter preferred ID display length',
67+
variant: 'input'
68+
}
69+
},
70+
title: 'Subject ID display length'
71+
},
6272
{
6373
fields: {
6474
defaultIdentificationMethod: {
@@ -129,7 +139,8 @@ export const ManageGroupForm = ({ data, onSubmit, readOnly }: ManageGroupFormPro
129139
defaultIdentificationMethod: $SubjectIdentificationMethod.optional(),
130140
idValidationRegex: $RegexString.optional(),
131141
idValidationRegexErrorMessageEn: z.string().optional(),
132-
idValidationRegexErrorMessageFr: z.string().optional()
142+
idValidationRegexErrorMessageFr: z.string().optional(),
143+
subjectIdDisplayLength: z.number().int().min(1)
133144
})}
134145
onSubmit={(data) => {
135146
void onSubmit({

0 commit comments

Comments
 (0)