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?
Solved! Go to Solution.
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,
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?
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,
Thanks for posting in the community @Paul1084 - can you review the above replies and update the thread if they were helpful?
Thank you,
@Anonymous
User | Count |
---|---|
195 | |
123 | |
86 | |
48 | |
40 |
User | Count |
---|---|
281 | |
165 | |
138 | |
80 | |
76 |