web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Choice to text for dir...
Power Apps
Unanswered

Choice to text for direct comparison

(0) ShareShare
ReportReport
Posted on by

Hello Everyone,

 

I need to compare a choice value to a text value. Please see below.

 

'Product' = DataCardValue5.Text

 

This doesn't work as a can't compare a choice value with a text value. What's the best way to convert the choice value 'Product' to text for the comparison.

 

Thank you in advance.

 

Rob

Categories:
I have the same question (0)
  • ANB Profile Picture
    7,223 Super User 2025 Season 2 on at

    Hi @rob4681, What is the data source and on which control and on which property you are using this code?

     

    Thanks,
    ANB

  • Verified answer
    WarrenBelz Profile Picture
    153,049 Most Valuable Professional on at

    Hi @rob4681 ,

    Try

    'Product'.Value = DataCardValue5.Text
  • rob4681 Profile Picture
    on at

    Hello all,

     

    Seems rebooting my app corrected this issue. Not sure why, thank you for your responses.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard