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."

View solution in original post

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,355)