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

Re: Save Filtered Lookup Value in List Custom Form

@gujjaL 

 

my solution works with multiple selection for dropdown. 

 

 

gujjaL
Frequent Visitor

Re: Save Filtered Lookup Value in List Custom Form

It saves only one value . For example if I select "a","b" 

the value saved in SP is "a" only.

Stijn007 Helper II
Helper II

Re: Save Filtered Lookup Value in List Custom Form

In my app, there are 2 items saved. 

 

Filter(Choices('CMT Niv 2'.B_TO1_cmt2);Value in Filter(gebruikers; Diensten.Value = "CMT Niv2").'Naam Gebruike')

 

The first part are the items of the dropdown of a the lookupcolumn: Choices('CMT Niv 2'.B_TO1_cmt2)

 

Then you start to filter, based on the value (in my case the departmentvalue in "diensten") in a column of the other sharepointlist (my list of users = gebruikers) with result the usernames of the namecolumn (naam gebruike)

gujjaL
Frequent Visitor

Re: Save Filtered Lookup Value in List Custom Form

Filter(Choices('CMT Niv 2'.B_TO1_cmt2);Value in Filter(gebruikers; Diensten.Value = "CMT Niv2").'Naam Gebruike')

 

CMT Niv 2-- Is this a sharepoint list?

gebruikers--Is this a sharepoint list?

Diensten,Naam Gebruike'-- are these column of gebruikers list

Stijn007 Helper II
Helper II

Re: Save Filtered Lookup Value in List Custom Form

Filter(Choices(sharepointlistname.columname);Value in Filter(sharepointlistname; columnname.Value = "CMT Niv2").columnname)

Filter(Choices('CMT Niv 2'.B_TO1_cmt2);Value in Filter(gebruikers; Diensten.Value = "CMT Niv2").'Naam Gebruike')

 

sharepointlistname.columname: this is the list and column that is attached to the form (where the data has to be stored)

 

sharepointlistname: this is the listname where the lookupcolumn looks his data up. (the big users list) 

 

Columnname in pink sharepointlist (big userlist with columns for the names, phonenumber and department) this column is the department

 

Columnname in pink sharepointlist (big users list) . This is the column with the name of the user. 

 

With this formula. I filter the items of a lookupcolumn   so i have only the names of the department "CMT Niv2" 

 

How do you would like to filter your dropdown in the form? 

 

 

 

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Top Solution Authors
Top Kudoed Authors
Users online (7,848)