cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
guyinkalamazoo
Helper III
Helper III

Multiselect not saving from datacard listbox

I have been researching this and tried different things.  I have two different multiselect datacards on a form.  One has a combobox and the other a datalist.  These feed a SharePoint list.  The first one with the combobox (barriers) works.  I have a second one with the listbox that uses this formula to get it's items: Distinct(Filter(Choices(['My SP List'.Reasons), Value exactin Filter('Barrier Reason', Barrier in ddBarrier.SelectedItems).Reason),Value).  The listbox does display the correct items.  But when I test and select any (even one), nothing saves.  The Update for this datacard is ListBox3.SelectedItemsText.Value.  I have tried different things there including using RenameColumns.

 

Thanks for the information.  This pic does show that I am getting proper results.  Just do not know why these are not saving

 

Annotation 2021-04-08 133358.png

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @guyinkalamazoo ,

 

It was not relating to the Items property of the ListBox at all, Instead, it depends on the Update property of the DataCard.

 

Try below formula, append on Update of the DataCard after modifying the Items of the ListBox:

ForAll(ListBox3.SelectedItems.Result As A, LookUp(Choices(['My SP List'.Reasons), Value = A.Result))

 

Explain in short, the Update of this DataCard need to be set to actual RECORDs in the DEFAULT Items of the ListBox which is Choices(['My SP List'.Reasons), so here using LookUp to find all records that equal Value to the selected Results.

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

2 REPLIES 2
guyinkalamazoo
Helper III
Helper III

I deleted the field and datacard from the form and just ran it in it's raw state without any Filter and it does work.  So leaving just this part for Items works: Choices(['My SP List'.Reasons).  At least now I know it might have something to do with the Items formula

Hi @guyinkalamazoo ,

 

It was not relating to the Items property of the ListBox at all, Instead, it depends on the Update property of the DataCard.

 

Try below formula, append on Update of the DataCard after modifying the Items of the ListBox:

ForAll(ListBox3.SelectedItems.Result As A, LookUp(Choices(['My SP List'.Reasons), Value = A.Result))

 

Explain in short, the Update of this DataCard need to be set to actual RECORDs in the DEFAULT Items of the ListBox which is Choices(['My SP List'.Reasons), so here using LookUp to find all records that equal Value to the selected Results.

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (4,905)