cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
IoanaM
Regular Visitor

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
Regular Visitor

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
Regular Visitor

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)

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
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Kudoed Authors
Users online (1,979)