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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

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,252 Super User 2026 Season 1 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
    155,501 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 385

#2
Vish WR Profile Picture

Vish WR 367

#3
timl Profile Picture

timl 340 Super User 2026 Season 1

Last 30 days Overall leaderboard