Hi,
I have a gallery which generates the tabs effects like below. Can I derive the gallery tabs based on checkbox selection?
If I select tab1 checkbox & tab2 checkbox I have to show only two tabs(tab1 & tab2). I know its a lot of combinations to check.
Wondering if anyone has an any suggestions or alternatives to my scenario?
Solved! Go to Solution.
Hi @Lana ,
Something like the below?
The Items of the bottom horizontal gallery is
With(
{
wTable:["tab1","tab2","tab3","tab4"],
wChecks:[If(ckTab1.Value,"tab1"),If(ckTab2.Value,"tab2"),If(ckTab3.Value,"tab3"),If(ckTab4.Value,"tab4")]
},
Filter(
wTable,
Value in wChecks.Value
)
)
The check boxes are names ckTab1-4
The Text of the Label in the gallery is
ThisItem.Value
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
Hi @Lana ,
Something like the below?
The Items of the bottom horizontal gallery is
With(
{
wTable:["tab1","tab2","tab3","tab4"],
wChecks:[If(ckTab1.Value,"tab1"),If(ckTab2.Value,"tab2"),If(ckTab3.Value,"tab3"),If(ckTab4.Value,"tab4")]
},
Filter(
wTable,
Value in wChecks.Value
)
)
The check boxes are names ckTab1-4
The Text of the Label in the gallery is
ThisItem.Value
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
Hi @Lana ,
I would recommend trying the visible property on the button within gallery.
Write the below code in Visible property as,
If(Checkbox1, true, false)
You will only see those buttons for which that specific checkbox is selected.
Output below,
Or
you can use another gallery as
Filter(Gallery1.AllItems, Checkbox1.Value = true)
Hope this helps.
This is exactly what I was looking for.. Thank you so much!!
Sorry for the late reply.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
200 | |
69 | |
49 | |
45 | |
20 |
User | Count |
---|---|
258 | |
121 | |
84 | |
77 | |
69 |