I'm stuck with adding choices to a choicebox. If i'm making a choice in the first choicebox, the second choicebox must be filled with only the items that have the selected characteristic.
I'm having 3 lists.
First list is called Campus, Second list is called 'gebouw' (in English Building), Thirth list is called 'lokaal' (in English called Room).
The logic behind it is: Every campus has it own set of buildings and every building has it own set of rooms. Lists are linked by the 'lookup' option in sharepoint list.
I've added as datasources to the three lists mentioned above.
When I choice ‘Vildersstraat’ only the rooms located at ‘Vildersstraat need to be added to ‘lokaal’.

I’ve written this code (don’t mind the ; In using an AZERTY keyboard so I need to replace , by ; )
AddColumns(
Choices([@Helpdesk].lokaal) As _Choices;
"lokaalhelpdesk";
LookUp(
[@Lokalen];
'Id (ID)' = _Choices.Id
).Campus
);
lokaalhelpdesk.Id = DataCardValueCampus.Selected.Id
)
What I'm I doing wrong?