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 / How to Show and Hidden...
Power Apps
Answered

How to Show and Hidden the text label

(0) ShareShare
ReportReport
Posted on by 442

First Screenshot: The screen shown as

"You haven't registered for the course."

 

Second Screenshot: The screen shown as

"You are registered for the following courses.

--------------------------------------------------

Course:

**Five Courses Lists**

 

For example, I want to create a visual text label that will display as 'You haven't registered for the course' when I haven't registered. Once the form is submitted and the course list appears, the text label 'You haven't registered for the course' should be hidden from view.

Screenshot 2023-11-03 001648.png
Screenshot 2023-11-03 001748.png
Categories:
  • Sundeep_Malik Profile Picture
    6,501 on at

    Hey @dylandavis09 

     

    I hope you are using a gallery to show the courses.

    You can try the following technique:

     

    Take a label: In the text property of the label write: You haven't registered for the course

    In the visible property of the label. You can write a count function like below:

    If(CountRows(GalleryName)>0,false,true)

    I hope in the gallery you have given a filter of current user's courses.

     

    And then you can take another label that will store a value for courses registered and if above count >0 then set its visible property to true otherwise false.

     

    I hope this helps 🙂

  • dylandavis09 Profile Picture
    442 on at

    Hi @Sundeep_Malik. No, I am using each text labels. I don't have gallery for that. 🙂

  • Sundeep_Malik Profile Picture
    6,501 on at

    @dylandavis09 

     

    Can you give me a brief how it is working?

    Like you are filling a form and then in the next screen you are showing courses that were selected in a type of combobox or something. 

    And is there a single label or multiple labels to show the courses on the next screen.

  • dylandavis09 Profile Picture
    442 on at

    let me show. 🙂

    Screenshot 2023-11-03 020123.png
  • Sundeep_Malik Profile Picture
    6,501 on at

    @dylandavis09 

     

    So you try the following thing:

     

    On the Not registered label.

    Set its visible property to the following:

     

    If(IsBlank(Label1)&&IsBlank(Label2)&&IsBlank(Label3)&&IsBlank(Label4)&&IsBlank(Label5),true,false)

     

    On registered Courses: 

    Set visible property to the following:

     

    If(IsBlank(Label1)&&IsBlank(Label2)&&IsBlank(Label3)&&IsBlank(Label4)&&IsBlank(Label5),false,true)

     

    By this if there are no courses selected the Not registered would be visible.

    If one course or more courses are selected the registered courses will be visible. 

     

    Replace Label1,... Label5 with your respective labels. 

     

    I hope this helps 🙂

  • dylandavis09 Profile Picture
    442 on at

    @Sundeep_Malik, those some of them are working, but there's one issue with the text input and the rectangle as well. I have two screenshots.

     

    When it shows 'not registered,' nothing else should be visible, such as 'You are registered for the courses,' 'Courses,' and the rectangle shape. Thank you.

     

    Screenshot 2023-11-03 023320.png
    Screenshot 2023-11-03 023349.png
  • Verified answer
    Sundeep_Malik Profile Picture
    6,501 on at

    @dylandavis09 

     

    On the registered for the courses label, rectangle and the courses label.

    Set the following visible property:

     

    If(IsBlank(Label1)&&IsBlank(Label2)&&IsBlank(Label3)&&IsBlank(Label4)&&IsBlank(Label5),false,true)

     

    I hope this helps 🙂

  • dylandavis09 Profile Picture
    442 on at

    Am I correct?

    Screenshot 2023-11-03 024624.png
  • Sundeep_Malik Profile Picture
    6,501 on at

    @dylandavis09 

     

    No it's incorrect. 

    You have to copy the same expression that you set for not registered for any courses label and flip the true and false values. Write false in place of true and write true in place of false.

     

    So the screenshot that you showed.

    Remove the rectangle, the label: "You are registered for the following courses" and the label : "Courses" from the visible property.

     

    Keep only 89, 90,91, 94 and 95

     

     

    I hope this helps 🙂

  • dylandavis09 Profile Picture
    442 on at

    Yes, I did myself and find solved. Thank you!

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 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard