Fixed hints & required error messages for input-type list

- Added mapping for required & hint properties
- Set the required type on the checkbox group instead of on each checkbox individually
This commit is contained in:
Alexandre Vryghem
2023-02-23 20:31:39 +01:00
parent 79cb51b2c1
commit 7720f38364
6 changed files with 43 additions and 13 deletions

View File

@@ -220,10 +220,16 @@ describe('FormBuilderService test suite', () => {
new DynamicListCheckboxGroupModel({
id: 'testCheckboxList',
vocabularyOptions: vocabularyOptions,
repeatable: true
repeatable: true,
required: false,
}),
new DynamicListRadioGroupModel({ id: 'testRadioList', vocabularyOptions: vocabularyOptions, repeatable: false }),
new DynamicListRadioGroupModel({
id: 'testRadioList',
vocabularyOptions: vocabularyOptions,
repeatable: false,
required: false,
}),
new DynamicRelationGroupModel({
submissionId,