cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Wedlib
Advocate II
Advocate II

dropdown visibility condition if another dropdown items is empty or not

Hi

I have this dropdown1 that performs a filter for items. sometimes it returns no items:

Dropdown1

Items = Filter(View_Class, dpSectionName.Selected.id_Section = FK_id_Section)

 

I do like to make Dropdown2 only visible if Dropdown1[items] has values.

Right now I'm repeating the filter on [Visible] for dropdown2:

Visible = !IsEmpty(FilterView_Class,dpSectionName.Selected.id_Section = FK_id_Section)

 

I'm trying to optimize the performance of my code so I don't want to call the data source again.

There is nothing like checking if a dropdown1.items is empty ?? I cant find it

1 ACCEPTED SOLUTION

Accepted Solutions
StalinPonnusamy
Super User
Super User

Hi @Wedlib 

 

Set the visible property of the Dropdown2 to

!IsBlank(dpSectionName.Selected.id_Section)

 
Thanks,
Stalin - Learn To Illuminate

View solution in original post

2 REPLIES 2
StalinPonnusamy
Super User
Super User

Hi @Wedlib 

 

Set the visible property of the Dropdown2 to

!IsBlank(dpSectionName.Selected.id_Section)

 
Thanks,
Stalin - Learn To Illuminate

initially, I have the default value for the dropdown1 set as empty and that proposed solution doesn't work.

But I changed my logic here and it's working.

 

thank you

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

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.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (2,039)