cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
IoanaM
New Member

Not able to get the value from combobox

Hi,

I'm new in PowerApps and I'm currently blocked on something supposed to be easy. Any help would be much appreciated.

So, I have a form connected to datavarse table as data source. The data type for the column I'm having troubles with, is Choice. I added this in the form and it's coming as Combo box inside a Card. Now, I'm trying to set a Label Text with the selected value in the combobox, but I'm not able to do this. 

I tried to set the label's Text value with 'combobox_id'.Selected.Value, but it says "This data type is unsupported for evaluation.", I tried "First(combobox_id.SelectedItems).Value", it says the same thing as before.

Also, the combox's Items property is set to "Choices(WorkType)", so I tried to get its value using this and I set the text property for the label with: Choices(WorkType).Value - I have an error saying: "Expected text value".

 

Nothing seems to work. So, how I can display the value selected in that combobox? 

 

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
IoanaM
New Member

Meantime, I found the solution. I had to convert the selected value to text, using Text() method. 

So, it worked like this: Text(combobox_id.Selected.Value)

View solution in original post

2 REPLIES 2
IoanaM
New Member

Meantime, I found the solution. I had to convert the selected value to text, using Text() method. 

So, it worked like this: Text(combobox_id.Selected.Value)

View solution in original post

Thanks for your posting here and sharing the solution in the forum as it would be helpful to anyone who encounters similar issues.

Best Regards.

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Top Solution Authors
Top Kudoed Authors
Users online (3,240)