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 / Help with controlling ...
Power Apps
Answered

Help with controlling datacard visibilty with yes/no toggle input

(0) ShareShare
ReportReport
Posted on by 30

Hello,

 

I have a very large form with several fields. I want a certain portions of the form to only be visible if the "toggle" yes/no input associated with those fields is checked to "true".

 

On one of the datacards I want to control I have gone to the "visible" option and tried the following:

 

If(DataCardValue35.Selected.Value = 'true', true, false)

 

this makes the data card hidden, but does not make it visible when I set the toggle to true.

 

Any idea what I am doing wrong? Thank you for any help. I am very new to all of this. 

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,881 Most Valuable Professional on at

    Hello @SamR ,

    I assume DataCardValue35 is a toggle?

    Set a Variable on the OnChange property

    UpdateContext({vShow:!vShow})

    This will toggle between true and false - Visible property on the controls you want hidden is vShow

     

    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.

  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @SamR ,

     

    I feel confused with DataCardValue35. What is this? Where is this?

    It is seemly impossible to be a Toggle control since Toggle control cannot be generated in EditForm by default, and  'Selected' property is not for Toggle control. Please make more description.

     

    In your case, you can try to put ToggleName.Value to Visible of DataCard directly.

    Test Result:

    GIF_47.gif

    Sik

  • Shaguar357 Profile Picture
    221 on at

    Thank you @WarrenBelz !  This worked for me!

     

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 602

#2
WarrenBelz Profile Picture

WarrenBelz 473 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 310

Last 30 days Overall leaderboard