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/hide a com...
Power Apps
Answered

how to show/hide a component

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all,

 

How can I show and hide the component (calendar pop up) after the calendar icon is clicked and hide the icon when the calendar icon is again? Thank you

 

Screen Shot 2020-05-21 at 11.03.07 AM.png

Categories:
  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Do you want to show the calendar by clicking the calendar icon, not show by clicking twice?

    You just need to set variable by clicking the calendar icon, then change the calendar's visible based on the variable.

    Could you tell me 1)whether the calendar icon and calendar belong to the same component?

                                  2)what does the calendar made of?

    Since I do not know your component's settings, I could only make a similar test on my calendar component.

     

    Here's my test for your reference:

    calendar icon named TodayIcon

    calendar is made of a gallery named MonthDayGallery, a gallery named WeekdayGallery

    1)calendar icon and calendar belong to the same component

    5216.PNG

     

    inside the component:

    set TodayIcon's OnSelect:

    Set(var,!var)

    set MonthDayGallery's Visible:

    var

    set WeekdayGallery's Visible:

     

    var

     

    Then result is like this:

    5213.gif

     

     2)calendar icon is outside the component 

    outside the component, inside the app

    set the calendar icon's OnSelect:

    Set(var,!var)

    set the component's Visible:

    var

    5217.PNG

     

    Then result is like this:

    5214.gif

     

     

     

    Best regards,

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard