I have a multi select combo box (SharePoint choice field) where fill-in choices should be allowed. For a single select choice field I am able to save the filled in choice back to SharePoint, but for multi-select I am not sure how to do it. Any suggestions?
Solved! Go to Solution.
Hi @sudheervvs :
The key is to construct a qualified structure.I've made a test for your reference:
1\My data source(List1)
2\Add a combo box(ComboBox1) and set it's Items property to:
Choices(List1.Choice)
3\Add a button and set it's OnSelect property to:
Patch(
List1,
First(List1),
{
Choice: RenameColumns(
Split(
Concat(
ComboBox1.SelectedItems,
Value,
"##"
) & "##" & ComboBox1.SearchText,
"##"
),
"Result",
"Value"
)
}
)
Best Regards,
Bof
Try
Patch(Table1,Defaults(Table1),{Column1:"ABC", Column2:Concat(ComboBox1.SelectedItems,ColumnNameInCombobox&" ")}
Column2 will pick the selected from the Combobox to Sharepointlist
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Hi @eka24 , Thanks for your reply. Not only the selected items but the text typed in the combo box should also be saved to SharePoint. The typed text may not match with existing choices, but it should be saved along with selected choices.
Hi @sudheervvs :
The key is to construct a qualified structure.I've made a test for your reference:
1\My data source(List1)
2\Add a combo box(ComboBox1) and set it's Items property to:
Choices(List1.Choice)
3\Add a button and set it's OnSelect property to:
Patch(
List1,
First(List1),
{
Choice: RenameColumns(
Split(
Concat(
ComboBox1.SelectedItems,
Value,
"##"
) & "##" & ComboBox1.SearchText,
"##"
),
"Result",
"Value"
)
}
)
Best Regards,
Bof
User | Count |
---|---|
253 | |
113 | |
92 | |
48 | |
38 |