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

how to validate a form with several selected items in combobox

hi,

 

I have a form with a combobox "identity" in which I would like to make several selection and sent it to my Sharepoint list.

 

ex:in my comboxo I select:
titi toto tata


then in another combobox I select the activity:
running

 

I would like in the sharepoint list the recordings are like this:
toto - running
tata - running
titi - running

 

I put SelectMultiple = true
but when I validate the form and look in my Sharepoint liste I have only one registered info.

Can you help me ?

Thank you

1 REPLY 1
Super User
Super User

Re: how to validate a form with several selected items in combobox

If you are expecting titi, toto and tata to each be a new item in SharePoint then you will need to use Patch() instead of SubmitForm(). With the Patch() method you will need to loop through (ForAll()) the selected values in the identity combo box and Patch them to SharePoint.

 

Example:

ForAll(ComboBox1Name.SelectedItems.Value, Patch('SPListName', Defaults('SPListName'), {IDD:Value , Activity:ComboBox1Name.Slected.Value})

 

 



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

Helpful resources

Announcements
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

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 239 members 5,052 guests
Please welcome our newest community members: