I am building an inventory request list where users can submit a request to provide a new laptop. Available laptop models are based on the department.
I made sharepoint list and creating a custom form with power apps. There are 3 dropdowns:
- Department - users select department they work for
- Laptop type - user friendly model eg "14' Dell, 16GB RAM"
- Model - exact model name
These are cascading dropdowns based on Inventory list that has 3 columns: Department, Friendly-name, Exact Model.
Department in custom form just filters all distinct departments:
Items = Distinct('Inventory', Department.Value)
Laptop type menu is based on the selected department:
Items = Filter('Inventory', Department.Value = DataCardValue5.Selected.Value)
This all works fine the way I wanted. But I cannot figure out how to make Model dropdown autoselect the "Exact Model" value of the same sharepoint item. Eg if user selects "15' Lenovo, 32GB RAM" in Laptop type, the Model dropdown below autoselects the value "LASDF465465" (made it up) from Model field of the same sharepoint item that Laptop type is selected. All Laptop types and models are unique.