web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Help with controlling ...
Power Apps
Unanswered

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
    153,034 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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard