cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Paul1084
Level: Power Up

ComboBox Multiple Item Sources - List & Search Text

Hi,

 

So... I have a combox that gets iems from a list and allows the user to select one item by searching, or scrolling down the list. If the user types in somthing that is not in the list the form will throw up an error if submitted.

 

Instead of the error, I want a new item added to the list. I have a flow that does this. but I need the combobox to allow it... a bit like the 'AllowUnsetValue' field you have on a dropdown. unfortunately the combo box does not have this option, and the dropdown does not allow searching making it an unsuitable alternative.

 

Now, I have tried adding the following formula to the 'Items' field of the ComboBox:

ComboBox1.SearchText

This allows the user to enter any text into the seach of the combobox, and it accepts it as an item... great this is exactly what  I want... but I cannot work out how to combine both my List, and the SearchText... my list code is:

SortByColumns('Design team Allocation'.Title,"Title")

How can i combine both Item Sources?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: ComboBox Multiple Item Sources - List & Search Text

Hi @Paul1084 ,

Do you want the user to be able to choose a option value from the ComboBox and could also type a new value within it?

 

Based on the needs that you mentioned, I think the ComboBox could achieve your needs. I have made a test on my side, please take a try with the following workaround:

Set the Items property of the ComboBox (ComboBox1) to following:

SortByColumns('Design team Allocation'.Title, "Title")

Set the Update property of the Data card which contains above ComboBox to following:

If(
   !IsBlank(ComboBox1.Selected.Title),
   ComboBox1.Selected.Title,
   ComboBox1.SearchText
)

Please take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
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

3 REPLIES 3
sopatte
Level 8

Re: ComboBox Multiple Item Sources - List & Search Text

If I'm understanding your question correctly, your ComboBox1.Items is: 

SortByColumns('Design team Allocation'.Title,"Title") 

 ...which returns a table, and you want to add ComboBox1.SearchText to that table. 

 

If you used the OnVisible property of the form to:

ClearCollect(ComboBox1Items,SortByColumns('Design team Allocation'.Title,"Title"))

...and set the Items property to "ComboBox1Items". You could then:

Collect(ComboBox1Items, ComboBox1.SearchText) 

...but you have to do that at the right time. Possibly in Form.OnSubmit?

Community Support Team
Community Support Team

Re: ComboBox Multiple Item Sources - List & Search Text

Hi @Paul1084 ,

Do you want the user to be able to choose a option value from the ComboBox and could also type a new value within it?

 

Based on the needs that you mentioned, I think the ComboBox could achieve your needs. I have made a test on my side, please take a try with the following workaround:

Set the Items property of the ComboBox (ComboBox1) to following:

SortByColumns('Design team Allocation'.Title, "Title")

Set the Update property of the Data card which contains above ComboBox to following:

If(
   !IsBlank(ComboBox1.Selected.Title),
   ComboBox1.Selected.Title,
   ComboBox1.SearchText
)

Please take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
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

Administrator
Administrator

Re: ComboBox Multiple Item Sources - List & Search Text

Thanks for posting in the community @Paul1084 - can you review the above replies and update the thread if they were helpful?

 

Thank you,

 

@TopShelf-MSFT 

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Demo Extravaganza Championship Voting Open

Voting Ends: October 30, 2019!

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 493 members 5,278 guests
Please welcome our newest community members: