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

Setting multiple default value for Combo Box bound to SharePoint Choice field

As per title, I have a Power App form where one of the data-cards is bound to a SharePoint CHOICE field. However, this is a multi-select field where more than one item can be chosen

 

From this community, I 've managed to set the default value for a single choice (https://powerusers.microsoft.com/t5/Using-PowerApps/Set-a-default-value-for-a-Sharepoint-Choice-fiel...)

 

{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
   Id:0,
  Value:"ChoiceA"}

...but I want to be able to set MULTIPLE choices from the start

 

In other words... all the values are ON and then the user turns OFF the ones they don't want.

 

TYIA

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Setting multiple default value for Combo Box bound to SharePoint Choice field

@BO55VXR 

 

You could do it several ways - if there is some criteria you can use to choose them, then you could use a Filter

   Filter(Choices(yourList.yourColumn), Value=yourCriteria)

 

Or, you could set them hard-coded (ex.):

  ["choice1", "choice2", "choice4"]

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

View solution in original post

4 REPLIES 4
Super User
Super User

Re: Setting multiple default value for Combo Box bound to SharePoint Choice field

@BO55VXR 

 

In this case you would be looking at the DefaultSelectedItems property of your ComboBox control.

If you set that property to:

   Choices(YourList.YourColumn)

That will give you all the choices for that column selected by default.

 

I hope that helps you out.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
BO55VXR
Level: Powered On

Re: Setting multiple default value for Combo Box bound to SharePoint Choice field

Thanks @RandyHayes 

 

What about default selection of say 4 out 6 options

 


@RandyHayes wrote:

@BO55VXR 

 

In this case you would be looking at the DefaultSelectedItems property of your ComboBox control.

If you set that property to:

   Choices(YourList.YourColumn)

That will give you all the choices for that column selected by default.

 

I hope that helps you out.


 

Super User
Super User

Re: Setting multiple default value for Combo Box bound to SharePoint Choice field

@BO55VXR 

 

You could do it several ways - if there is some criteria you can use to choose them, then you could use a Filter

   Filter(Choices(yourList.yourColumn), Value=yourCriteria)

 

Or, you could set them hard-coded (ex.):

  ["choice1", "choice2", "choice4"]

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

View solution in original post

BO55VXR
Level: Powered On

Re: Setting multiple default value for Combo Box bound to SharePoint Choice field


@RandyHayes wrote:

@BO55VXR 

 

You could do it several ways - if there is some criteria you can use to choose them, then you could use a Filter

   Filter(Choices(yourList.yourColumn), Value=yourCriteria)

 

Or, you could set them hard-coded (ex.):

  ["choice1", "choice2", "choice4"]

 


So easy when you know how ... Thanks.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 94 members 4,921 guests
Please welcome our newest community members: