
Announcements
Hello,
I have a canvas app displaying items from a sharepoint list. Users view/modify/add records via the app.
I have a choice colums in the list "Statut" with the choices: fini, attente, encours, nouveau
I have added a toggle switch on my gallery page that I want to include/exclude items with the "Statut" of 'fini'
the onCheck of the toggle is
Set(showFini;true)the onUnCheck is
Set(showFini;false)
the gallery items code is
Filter(
MainIntList;
If(showFini=false;Statut.Value<>"Fini")
)
When the toggle is unchecked (false) items with Statut = Fini are hidden, if I check the toggle the gallery goes blank.
Can someone help me understand why and how to show all items if the toggle is checked/true
I resolved this simply (although I am not sure it is the best way?)
Filter(
MainIntList;
If(showFini=false;Statut.Value<>"Fini")
// here I added an or
|| showFini = true
)