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 pass Boolean va...
Power Apps
Unanswered

How to pass Boolean value from one component to another component using Custom properties?

(0) ShareShare
ReportReport
Posted on by 313

Hi All,

I build two component in PowerApps.
1st component: (Header)

sayyedkohler_0-1627986211692.png


2nd component: (Pop Up)

sayyedkohler_1-1627986288771.png

I want to click on question mark (in 1st Component) and then show 2nd component.
Also , I want to close that popup using button.

Thanks


 

Categories:
  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Hey. When onselcet property on the question mark write this:
    Set(varPopUp; true)

     

    Tehn, on popup(second component), onVisible, write this: 

    varPopUp

     

    When you press the button to close the popup, write this:
    Set(varPopUp; false)

  • sayyedkohler Profile Picture
    313 on at

    Thanks for the response @Nogueira1306 .
    But I need solution with components custom property.

  • Abhilash_Swain Profile Picture
    901 on at

    Hi @sayyedkohler ,

    Please check the below screenshot. By clicking the Button in component 1, the output appears true and false. You can use the same output to the visible property of component 2. Similarly, you can play with component 2's output.

    Abhilash_Swain_0-1627990326172.png

     

    Abhilash_Swain_1-1627990431957.png

    Abhilash_Swain_3-1627990477096.png

     

    Abhilash_Swain_4-1627990527472.png

     

    Abhilash_Swain_5-1627990553374.png

     

    Please give a thumbs-up / accept it as a solution if I answered correctly .

    Thanks

    Abhi

  • sayyedkohler Profile Picture
    313 on at

    Thanks @Abhilash_Swain 
    I am able to hide/show using same button from one component.
    But my requirement is little different.

    I want to show Component2 using onClick of Component1 button, but I want to hide Component2 using Component2 button (not component 1 : [same button]).

    Thanks

  • Abhilash_Swain Profile Picture
    901 on at

    Abhilash_Swain_0-1627993522045.png

    Use out properties from Component2 and use it to visible component 2 with a combination of out properties of component1. Use and or operators with If to accomplish your requirement.

     

  • sayyedkohler Profile Picture
    313 on at

    @Abhilash_Swain  Its not working properly.
    I tried. When I hide and again show then its not showing.
    Please help me with that with some more screenshots if possible :).
    Thanks a lot.

  • Abhilash_Swain Profile Picture
    901 on at

    Hi @sayyedkohler ,

    Ok just played around with 2 components.  Please find the below screenshots.

    1> Set input and output properties for both components. For input property, check "raise OnReset when value changes" 

    Abhilash_Swain_1-1628001281135.png

    2>  Set Input values for component1 to the output value of component 2. Vice versa.

    Abhilash_Swain_0-1628001136089.png

     

    3> Set the visible property of component 2 to the below formula.

    Abhilash_Swain_2-1628001341761.png

     

    Please mark it as a solution & give a thumbs up if it completes your requirement.

    Thanks

    Abhi

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard