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

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

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

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,914)