Open israelKusayev opened 5 years ago
Hello @israelKusayev ,
I am not 100% sure, but I think relations need to have different ids to work. You have used 'WhereVTEWasDiagnosed' 2 times, so only the first ist working.
@udos86 : shouldn't an error or warn message be printed to the console in this case?
@Karamuto @udos86 What is the syntax to use "when" in relations if "rootPath" is mapping to DynamicCheckboxGroupModel?
new DynamicCheckboxGroupModel({
id: "bsCheckboxGroup",
label: "Checkbox Group",
group: [
new DynamicCheckboxModel({
id: "checkboxGroup1",
label: "Checkbox 1",
value: true
}),
new DynamicCheckboxModel({
id: "checkboxGroup2",
label: "Checkbox 2",
value: true
})
]
}),
relations: [ { match: MATCH_DISABLED, when: [{rootPath: "bsCheckboxGroup.checkboxGroup1", value: true}] }, { match: MATCH_HIDDEN, when: [{rootPath: "bsCheckboxGroup.checkboxGroup2", value: true}] }, ],
Error msg: No related form control with id undefined could be found
Hello @israelKusayev,
this actually has nothing to do with the current thread. Could you open another one and paste a JSON of the resulting formGroup?
I'm submitting a
I'm using
Description
Multiple relation not working!! I want to apply multiple relations on select But every time he only refer to the first relation
Am I doing something wrong??