cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ljgeorge
New Member

Conditional visibility for text boxes depending on the selections in combo box

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!

1 ACCEPTED SOLUTION

Accepted Solutions
VijayTailor
Resident Rockstar
Resident Rockstar

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 - 

VijayTailor_0-1601624267599.png

 

Set the visibility for all textboxes like below.

If("Item1" in ComboBox2.SelectedItems.ItemName,true,false)


Reference - 
DropDownIssue.gif
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."

View solution in original post

3 REPLIES 3
VijayTailor
Resident Rockstar
Resident Rockstar

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 - 

VijayTailor_0-1601624267599.png

 

Set the visibility for all textboxes like below.

If("Item1" in ComboBox2.SelectedItems.ItemName,true,false)


Reference - 
DropDownIssue.gif
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!

Hi ,

Please mark the solution as answered if my solution helps you to resolve your Issue.
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."

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (4,960)