Skip to main content

Notifications

Community site session details

Community site session details

Session Id : C0w7urkwqfTJnur1zx1RZA
Power Apps - Building Power Apps
Answered

How to Show and Hidden the text label

Like (0) ShareShare
ReportReport
Posted on 3 Nov 2023 04:26:38 by 438

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.

  • dylandavis09 Profile Picture
    438 on 03 Nov 2023 at 06:53:47
    Re: How to Show and Hidden the text label

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

  • Sundeep_Malik Profile Picture
    6,480 on 03 Nov 2023 at 06:52:58
    Re: How to Show and Hidden the text label

    @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
    438 on 03 Nov 2023 at 06:46:51
    Re: How to Show and Hidden the text label

    Am I correct?

  • Verified answer
    Sundeep_Malik Profile Picture
    6,480 on 03 Nov 2023 at 06:40:02
    Re: How to Show and Hidden the text label

    @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
    438 on 03 Nov 2023 at 06:37:30
    Re: How to Show and Hidden the text label

    @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.

     

  • Sundeep_Malik Profile Picture
    6,480 on 03 Nov 2023 at 06:25:51
    Re: How to Show and Hidden the text label

    @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
    438 on 03 Nov 2023 at 06:01:43
    Re: How to Show and Hidden the text label

    let me show. 🙂

  • Sundeep_Malik Profile Picture
    6,480 on 03 Nov 2023 at 05:45:55
    Re: How to Show and Hidden the text label

    @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
    438 on 03 Nov 2023 at 05:42:30
    Re: How to Show and Hidden the text label

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

  • Sundeep_Malik Profile Picture
    6,480 on 03 Nov 2023 at 05:19:54
    Re: How to Show and Hidden the text label

    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 🙂

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,743 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,083 Most Valuable Professional

Leaderboard