Good Day,
Need some assistance with configuring a layout in a canvas app. I have a gallery, with three containers, each container has different types inputs (ie container 1 shows radio buttons, container two has text etc.) and would want to have their visibility changed based on a gallery item's property. I have tried a few things but for some reason I can't get the visible property to trigger correctly. I'm not sure if my code is incorrect or I'm not understanding how Power Apps deals with these visibility changes.
So for example, I have a gallery called "itemGallery", the items have the attributes of Name,Type,Owner. So in the container visibility I have the code as IF(ThisItem.Type = 0,true,false). The intention is that any item that matches type 0, that container shows and for the other two containers that have IF(ThisItem.Type = 1,true,false) and IF(ThisItem.Type = 2,true,false) they have their visible set to false and don't show. However this doesn't work, as no container shows.
I'm also curious if I can set the container's height like this as well by setting the Height property to be IF(ThisItem.Type = 0, 80,0)