cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
MuzaffarMahmood
Level: Powered On

can i use multiple data source on Choices

I have 2 share point list

1)Users  with attributes --   Columns Name( Name(Text) , Lead Generator  , Account Executive)

2)Requests with Lookup Users

 

By Adding Field Default Expression is-

Choices([@requests]. Lead Generator)

I need a only those Users in Requests form whose Lead Generator = false/true

can i use multiple data source on Choices or Is there any other way to apply condition on parent table

As a result i need a Drop down list.

Note : I am using  Submit Form(Form2) because i am posting single form.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: can i use multiple data source on Choices

Hi @MuzaffarMahmood ,

 

Did you mean that in the dropdown control for the Lookup field "Lead Generator", you want to filter the options inside this dropdown with the a yes/no column type from source list(User)? Is "Lead Generator" in Users list the yes/no column?

 

If so, then change the Items property of the dropdown control to:

Filter(User,'Lead Generator'=false)

In this formula, I assume that you want to filter with "No". You can change it to the one you use.

Make sure that DisplayFields and SearchFields properties of this dropdown control is selected to the source field that you set in SharePoint lookup column setting.

 

And at last change the formula of the Update property of this data card to:

{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
                        Id:DataCardValue14.Selected.ID,
                        Value:DataCardValue14.Selected.Name}

DataCardValue14 is the dropdown control's name. In this formula I assume that you are using Name field from User list as the source field of the lookup column.

 

Regards,

Mona

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
DisappointmentB
Level: Powered On

Re: can i use multiple data source on Choices

Hello,


I find it easier in these circumstances to create your own lookup. To do this I would set the field as a text field in the primary list. Add the Users list as a data source. When you add the text box to the screen you can change its type to be a dropdown. Then for the items of the dropdown you can write a formula that filters the User list based on if the Lead Generator is selected. The value in the new dropdown will get saved against the text field on submit.

 

Regards

 

Ben

Community Support Team
Community Support Team

Re: can i use multiple data source on Choices

Hi @MuzaffarMahmood ,

 

Did you mean that in the dropdown control for the Lookup field "Lead Generator", you want to filter the options inside this dropdown with the a yes/no column type from source list(User)? Is "Lead Generator" in Users list the yes/no column?

 

If so, then change the Items property of the dropdown control to:

Filter(User,'Lead Generator'=false)

In this formula, I assume that you want to filter with "No". You can change it to the one you use.

Make sure that DisplayFields and SearchFields properties of this dropdown control is selected to the source field that you set in SharePoint lookup column setting.

 

And at last change the formula of the Update property of this data card to:

{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
                        Id:DataCardValue14.Selected.ID,
                        Value:DataCardValue14.Selected.Name}

DataCardValue14 is the dropdown control's name. In this formula I assume that you are using Name field from User list as the source field of the lookup column.

 

Regards,

Mona

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,608)