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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,320)