cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
marial16
Post Partisan
Post Partisan

Submit form with person or group combo box

Hallo,

i have a form (new form) with a field Person or Group.

I want it to allow multiple values so i made the changes in SP and Powerapps settings.

I am not sure on what the Items, DefaultSelectedItems and Update of the datacard must be in order to submit the form successfully in SharePoint.

I noticed in the Items Property of the combo box i am getting a Table. (Choices([@Contracts].ContractCoordinator))

DatacardValue.SelectedItems in the update property is giving me an error (Expected Record Value).

 

Same in the Edit mode of the form

Any ideas? 

1 ACCEPTED SOLUTION

Accepted Solutions
v-qiaqi-msft
Community Support
Community Support

Hi@marial16,

Based on the issue that you mentioned, do you want to make the ComboBox allow multiple values?

Could you please share a bit more about your scenario, how do you set the DefaultSelectedItems of the ComboBox?

Please provide the above details so that we can figure it out.

You can try to set the Update property of the Data Card as below:

 

{Value:DataCardValue1.SelectedItems}

 

Best Regards,

Qi

Best Regards,
Qi

View solution in original post

4 REPLIES 4
rubin_boer
Super User
Super User

hi there

 

with sharepoint list being a person or group column and allowing multiple selections, when the combobox in a form will by default allow for multiple values.

 

Here is a form with datasource being the list in sharepoint. when the save button is clicked, it updates the list with both selected users. Save is SubmitForm(form).img003.png

hey there if you liked the post give it a thumbs up, and if it solved your question please accept it as a solution.
v-qiaqi-msft
Community Support
Community Support

Hi@marial16,

Based on the issue that you mentioned, do you want to make the ComboBox allow multiple values?

Could you please share a bit more about your scenario, how do you set the DefaultSelectedItems of the ComboBox?

Please provide the above details so that we can figure it out.

You can try to set the Update property of the Data Card as below:

 

{Value:DataCardValue1.SelectedItems}

 

Best Regards,

Qi

Best Regards,
Qi

Seemed like i had to remove and re add the person/group field in order for the changes to take place.

It is working now correctly with SelectedItems.

Hi@marial16,

Have you solved your problem?

If you have solved your problem, please Mark an appropriate solution as an Answer.

Best Regards,

Qi

Best Regards,
Qi

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (6,584)