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 / Display the label and ...
Power Apps
Unanswered

Display the label and text label based on a condition

(0) ShareShare
ReportReport
Posted on by 14

Hello,

I have a PowerApps application based on a SharePoint list called ‘Consumable Stock.’ My screen consists of:

  • A gallery (FormViewer1_1) connected to the ‘Stock Consommable’ SharePoint list.
  • Various labels and text labels.

My goal is to hide a label and a text label on my screen based on a certain value. I’ve used the following formula in the Visible property:

If(FormViewer1_1.DataCardValue3.Text = "Pdt Chim", true, false)

I came to see you because it’s not working. How can I fix it?

 

Thank you

Categories:
I have the same question (0)
  • Verified answer
    rhyspmurphy Profile Picture
    34 on at

    Hey,

     

    Does the following work? I tried on a sample gallery (called Gallery1 in this case) and it worked without the Gallery1 part (in your case FormViewer1_1).

    If(DataCardValue3.Text = "Pdt Chim", true, false)

     

  • timl Profile Picture
    36,383 Super User 2025 Season 2 on at

    Hi @Muzomax59 

    Where are the labels that you want to hide? Are they in the gallery itself?

    Note that a gallery is designed to contain multiple rows. If (for example) there are 5 rows in the gallery, which row are you expecting to test against with the search criteria FormViewer1_1.DataCardValue3.Text = "Pdt Chim"?

  • Muzomax59 Profile Picture
    14 on at

    I was looking for a more complicated solution...

    Thanks

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard