Hi Ryan,
First off, congratulations on your page—it looks great! Awesome work! 
To ensure that the filter retains all the options and doesn’t narrow down the list as you select, you need to add the disjunctive: true
parameter to the context in your <ods-dataset-context>
tag for the fields used as filters.
Here’s an example from the documentation of the <ods-select> widget:
ctx-parameters="{ 'disjunctive.arrondissement': true, 'disjunctive.libellefrancais': true }">
This will allow the dropdown to behave as expected.
I hope this helps resolve the issue! Feel free to reach out if you need further assistance.
Wishing you a great day and a wonderful week!
Best regards,
Thomas
Auto-translation 🪄
Bonjour Ryan,Tout d'abord, félicitations pour votre page. Elle est superbe ! Excellent travail !

Pour garantir que le filtre conserve toutes les options et ne réduit pas la liste au fur et à mesure de votre sélection, vous devez ajouter le paramètre disjunctive: true au contexte de votre balise pour les champs utilisés comme filtres. Voici un exemple tiré de la documentation du widget :ctx-parameters="{ 'disjunctive.arrondissement': true, 'disjunctive.libellefrancais': true }">Cela permettra à la liste déroulante de se comporter comme prévu.J'espère que cela aidera à résoudre le problème ! N'hésitez pas à nous contacter si vous avez besoin d'aide supplémentaire.Je vous souhaite une excellente journée et une merveilleuse semaine !Cordialement,Thomas
Hi Thomas,
Thanks for your answer! I tried changing this but it didnt seem to do the trick. Do i need to do this disjunctive true for every single item in the ods context tag, or just the one that forms the filter list? There are quite a few !
Thanks
Ryan
Hi @Ryan
,
Thanks for getting back to me.
You only need to apply the disjunctive: true
parameter to the fields that are being used as filters in your dropdown. This parameter ensures that the filter allows for multiple selections without refining the list based on a single selection.
So, if you have multiple fields in your <ods-dataset-context>
tag, you should add disjunctive: true
only to those fields that you want to behave as multi-select filters.
For example, if you have a filter on a field called category
, your context parameters might look like this:
ctx-parameters="{ 'disjunctive.category': true }"
This should resolve the issue with the dropdown list.
If this solution still doesn't work, feel free to reach out again so we can explore a workaround, such as creating a dedicated context for the filters to ensure they are not affected by the filter results.
Best regards,
Thomas
Hi Thomas,
Thanks for the reply! Tried that but it doesnt seem to have changed anything. But I did reduce the code template from 2 dropdowns to 1 so it might be ive accidentally removed some important line!
Ive attached the context and filter code if that helps
Thanks
Ryan
Hi Ryan,
Thanks for sharing the code—it was very helpful!
I believe I've resolved the issue by replacing <ods-adv-analysis>
with <ods-facet-results>
to generate the filter values. Additionally, I changed the context related to the "lazones" map to "regions." This should work fine as the "regions" context parameters are correctly assigned to the other contexts.
I also made a few minor adjustments to the code, including displaying and resetting the filter with the correct context.
I've attached my updated code for your reference. I hope this helps you move forward with your page!
Feel free to reach out if you need further assistance.
Best regards,
Thomas
Hi Thomas,
That worked a treat but it did raise another issue! Once I selected more than one option in my drop down i noticed some of the data wasnt pulling through. It seems the ones that already had the disjunctive set up continued to work so I added that line to all the contexts and it seemed to do the trick.
So it all works now, just thought I would raise in case thats not how we expected that to work!
Thanks very much for the support, its lead to a very useful tool for our stakeholders :)
Thanks
Ryan
Hi Ryan,
I'm glad to hear that everything is working now! 
I'm really pleased that this has resulted in a useful tool for your stakeholders. If you have any more questions or need further assistance, feel free to reach out.
Have a great day!
Best regards,
Thomas