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 modify a custom...
Power Apps
Answered

How to modify a custom component's properties (visibility or height) from within the component

(0) ShareShare
ReportReport
Posted on by 122

Hello,

I am trying to build a pop up for many screens. 

I know i can build a popup without making it a component but I don't really want to lose the benefits of doing so.

 

I've tried just referring to the component'sName.height or .visible but that doesnt work

 

My question is, inside a component, how can I modify the components visibility from clicking a button inside it?

 

 

Categories:
I have the same question (0)
  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    Hi @JuanArango, Can you please elaborate more on the component please? I mean how you are using that and what controls you are using etc. Some screenshot also.

     

    Thanks,

    ANB

  • JuanArango Profile Picture
    122 on at

    Hello @ANB,

    I am trying to create a pop up as shown:

    JuanArango_0-1703956366644.png

    The idea is to show some data in this pop up and after it is seen, the user will close the popup seeing only the project screen (the screen that can be seen below in red colors).

     

    I am building this component as follows:

    JuanArango_1-1703956598351.png

    In this picture you will notice that I am trying to set to false the component's visibility through the icon onSelect event, however, when I run the app and click the icon the component remains visible, leading me to believe that the children within the component cannot refere to the component itself.

     

  • Verified answer
    ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    Hi @JuanArango ,This is how i created the component.

    ANB_0-1703965677787.png

    1. On select of cancel button which is inside the component, i have set a global variable: Set(gblvar_visible, false)
    2. ANB_1-1703965945297.png
    3. Then the OnReset property of component itself, I have set that variable to true : Set(gblvar_visible, true)
    4. ANB_2-1703965984625.png
    5. Then created one custom output property of component as out1 of Boolean type and used the global variable as gblvar_visible
    6. ANB_0-1703968267477.png
    7. Now, just add this component to screen and set the visible property of component to Component1_1.out1.
    8. Now, you need to fire the Reset(Component1_1), that can be done on click of button or on the OnVisible of screen.

    Modal_Component.gif

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

    I hope this helps.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍

    Thanks,
    ANB


     

     

     

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
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard