cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sgokul95
Frequent Visitor

Show the selected item of choice type column in SharePoint to the selected item of ComboBox in PowerApps

Hi Everyone, 

 

I have a list in SharePoint called as "ItemList". One of its columns named "State" is Choice type and has 2 values: Active and Inactive. The other column is Name of type string.

 

I have connected this list to a ComboBox inside the Gallery(It has a TextInput and a ComboBox) and populated the ComboBox using its Items property as follows:

 

 

Choices('ItemList'.State)

 

 

The SP list contains an item( Name: Pump, State: Active). 

The Gallery displays this item using TextInput and the ComboBox. The TextInput rightly displays as "Pump", whereas the ComboBox doesn't display the selected item automatically. (In this case, it should display "Active" as the Pump in the SP list has the State value as Active. 

 

So can anyone please let me know which property and how to set such that Active value gets displayed as the selected value in the ComboBox for this item?

2 ACCEPTED SOLUTIONS

Accepted Solutions
PG_WorXz10
Resident Rockstar
Resident Rockstar

Hi @sgokul95 ,

 

You have to set the DefaultSelectedItems property to set the current selected values. 

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

If this post was helpful or you need more help please consider giving Thumbs Up and Tag me in your reply I'll be happy to help. If this post helped you solve your issue please click Accept as solution and provide Thumbs Up. This will help others find it more readily.

View solution in original post

StalinPonnusamy
Community Champion
Community Champion

4 REPLIES 4
PG_WorXz10
Resident Rockstar
Resident Rockstar

Hi @sgokul95 ,

 

You have to set the DefaultSelectedItems property to set the current selected values. 

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

If this post was helpful or you need more help please consider giving Thumbs Up and Tag me in your reply I'll be happy to help. If this post helped you solve your issue please click Accept as solution and provide Thumbs Up. This will help others find it more readily.

View solution in original post

StalinPonnusamy
Community Champion
Community Champion

Thanks @StalinPonnusamy It works perfectly.

Thanks @PG_WorXz10 

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!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,131)