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 / Show/Hide Gallery Text
Power Apps
Unanswered

Show/Hide Gallery Text

(0) ShareShare
ReportReport
Posted on by 505

I have a form with the data stored in the dataverse. I would like the selected choice field from an item to show or hide text in a gallery item. DataCardValue64.Selected.Value="Complete" is saying it can't be compared.

Categories:
  • Waegemma Profile Picture
    583 Super User 2024 Season 1 on at

    Hi @send2mark ,

     

    It's true you can't compare Text to Dataverse Choice. But you can do this:

     

    DataCardValue64.Selected.Value = 'NameOfTheChoiceColumn'.Complete

     

    Example:

     

    If(DataCardValue3.Selected.Value = 'Status (Expense Reports)'.Active; "Status is Active";"Status is Inactive")

     

     

    Waegemma_0-1667316420465.png

     

    Hope this helps,

     

    Marc

  • send2mark Profile Picture
    505 on at

    That first option got rid of the error, but for some reason, it shows on all values. The values are Complete, No, Yes and they all show instead of just Complete.

     

    The second option produced a generic error saying to make changes and to try again.

  • Waegemma Profile Picture
    583 Super User 2024 Season 1 on at

    Hi @send2mark ,

     

    To show the label when Complete:

     In the Visible property of the Label put:

    DataCardValue64.Selected.Value = 'NameOfTheChoiceColumn'.Complete

     

    To hide the label when Complete:

     In the Visible property of the Label put:

     

    Not(DataCardValue64.Selected.Value = 'NameOfTheChoiceColumn'.Complete)

     

     

    NameOfTheChoiceColumn has to be replaced with your column/field name of course.

     

    If this doesn't work, you'll have to give me some more info.

     

    Greetings,

    Marc

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 394 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

Last 30 days Overall leaderboard