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 / Hiding fields based on...
Power Apps
Answered

Hiding fields based on another boolean datacard type

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi everyone, 

 

I'm new to Powerapps, and I'm learning how to hide this text field datacard (nombre_place_Datacard1)

 

1.PNG

 

according to this boolean datacard value (disponible_Datacard1)

 

2.PNG

 

I wanted to make the first one (nombre_place) invisible once the second one (disponible) is set to "false", with this formula placed in nombre_place_DataCard Visibility option : 

3.PNG

 

With DataCardValue4 being from disponible_Datacard1

 

But so far, it's not working... 

 

Any idea where could the problem come from ? 

Thanks in advance ! 

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,923 on at
    Select the datacard and put this formula:
    disponible.Value=true
    Or- You use the correct name
    Toggle1.Value=true
  • mdevaney Profile Picture
    29,991 Moderator on at

    @Anonymous 

    Try this simple code in the Visible property instead...

     

    DataCardValue4.Selected.Value

     

     

    *Note: sorry @eka24 for the double-post 😞

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @eka24 

    I guess I should put the formula in the "Visible" proprety, right ? 

    If so, here's what I put : 

    If(disponible_DataCard1.Value="true") 

    but it still doesn't work 😞

     

    @mdevaney 

     

    I put the following formula in the "Visible" proprety : 

    If(DataCardValue4.Selected.Value="true")

     

    but it ain't working either 😕

  • mdevaney Profile Picture
    29,991 Moderator on at

    @Anonymous 

    I think you misunderstood me, lol.  The IF statement is not necessary.  Put exactly this code in the Visible property.

     

    DataCardValue4.Selected.Value

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Verified answer
    eka24 Profile Picture
    20,923 on at
    As said by @mdavaney, you don't need if. Also don't put " " after the true. Just to recap,
    Select the datacard you want to hide, then in the visible put this formula
    disponible_DataCard1.Value=true
    This should also work if you want to use if:
    If(disponible_DataCard1.Value=true,true, false)
    Where disponible_DataCard1 is the Toggle button being changed to trur or false. You can change the name if that's not the name but the structure of the formula is ok

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 94

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard