Hi all,
I am trying to hope a combo box where depending on your selection, different data cards will appear. For example, my combo box will have 'Item 1', 'Item 2' and 'Item 3'. If I choose 'Item 1', then only Textbox_1 will appear. If I choose 'Item 1' and 'Item 3' in the combo box, then Textbox_1 and Textbox_3 will appear.
I have tried going to each textbox data card, and under Visible putting If("Item" In ComboBox1.Selected.Value, true, false) and this works. However, it will only display the textbox for the last item selected in the combo box. For example, I selected 'Item 1' first and then 'Item 3' second, only Textbox_3 will appear. If I select 'Item 2' first and then 'Item 1', only Textbox_1 will appear.
How can I make it so data cards will become visible depending what is selected in the combo box? Hopefully this makes sense. Thanks!
Solved! Go to Solution.
Hi @ljgeorge ,
You can Use Like Below .
You need to set the visibility for every text box based on your condition.
Another thing is Allow Multislelect Option should be true for the Combobox.
See the reference -
Set the visibility for all textboxes like below.
If("Item1" in ComboBox2.SelectedItems.ItemName,true,false)
Reference -
Thanks,
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
Hi @ljgeorge ,
You can Use Like Below .
You need to set the visibility for every text box based on your condition.
Another thing is Allow Multislelect Option should be true for the Combobox.
See the reference -
Set the visibility for all textboxes like below.
If("Item1" in ComboBox2.SelectedItems.ItemName,true,false)
Reference -
Thanks,
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
Got it to work. Thanks!
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 |
---|---|
209 | |
70 | |
49 | |
48 | |
20 |
User | Count |
---|---|
256 | |
125 | |
84 | |
77 | |
72 |