cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ChrisS81
Helper II
Helper II

Filter dropdown based on variable

Hello,

 

I have a dropdown that I need to populate based on a variable. For instance, when I'm in the edit form I need the dropdown to display all of the objectives that start with "3." if the variable name varID is set to 3. If varID is set to "5" then it displays all objectives that start with "5.", etc. Any help would be appreciated.

4 REPLIES 4
Drrickryp
Super User
Super User

@ChrisS81 

The Items property of the dropdown should be Filter(splist, StartsWith(Objectives, varID))

@Drrickryp thanks for the reply. I'm getting 2 errors:

ChrisS81_0-1652141106102.png

and

ChrisS81_1-1652141168254.png

I'm writing:

ChrisS81_2-1652141235976.png

 

 

Drrickryp
Super User
Super User

@ChrisS81 

What type of column is objectives?

ChrisS81
Helper II
Helper II

@Drrickryp  "Objectives" in the "Form-Test" list is actually a Lookup column from another List called "Objectives". It's pulling over the title field from the objectives list and it displays the values 1.1, 1.2, 1.3, 2.1, 2.2, 2.3, etc. 

 

Sorry I didn't make that clear in the beginning.

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.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

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
Top Kudoed Authors
Users online (3,432)