cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Am4ree
Helper I
Helper I

How to auto populate Dropdown based on Textbox Input

Hi Community,

 

basically I have list called PDItemlist. it has 2 Columns are FilmNumber (Single Text) and CylinderNumber (Single Text).

 

so I want to achieve, when I input FilmNumber (Text Input), the Clindernumber (Dropdown) will auto populated record from PDItemlist.

 

Am4ree_0-1662350677878.png

 

I have tried to input this code to dropdown items property but not work.

 

Am4ree_1-1662350777935.png

 

Any advise?

 

Thanks.

am4ree

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Am4ree ,

 

Cause lookup can only return the first record that meets the criteria. In order to get multiple records, please use "Filter" instead of "LookUp" .

 

Best Regards,

Bof

View solution in original post

7 REPLIES 7
Gochix
Solution Sage
Solution Sage

Hi,

you haven’t mentioned which column to display on the second dropdown. 

LookUp(PDItemlist, baancylindernumber =txtFilmnumber.text, cylindernumber)
_____________________________________________________________________________________
Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!

Hi @Gochix ,

 

I have tried your code but error prompted on the code. 

 

Am4ree_0-1662351971553.png

 

Sorry I haven’t noticed that first check was incorrect in your code. This should work:

 

LookUp(PDItemlist, txtFilmnumber.text = FilmNumber, cylindernumber)


_____________________________________________________________________________________
Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!

Hi @Gochix 

 

Not luck, I still got error prompted

 

Am4ree_0-1662356541362.png

 

Finally I can auto populated the dropdown but there is still something I need to achieve which is I only seen 1 record at the moment and should be 2 record based on filmnumber I have inserted.

 

below is sample

 

Am4ree_1-1662357473220.png

 

I found 2 record based on FilmNumber I had inserted but in the dropdown only show 1 record

 

Am4ree_2-1662357565792.png

 

Hi @Am4ree ,

 

Cause lookup can only return the first record that meets the criteria. In order to get multiple records, please use "Filter" instead of "LookUp" .

 

Best Regards,

Bof

Thanks @v-bofeng-msft , Yes I should use filter instead of lookup.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

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