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 / Make all the field vie...
Power Apps
Answered

Make all the field view only when toggle is true

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I've a tabbed form and every tab has a toggle. How can I make the fields of a tab view only if the toggle value i true?

 

In the screenshot below, I want to make the Intake tab and the field from second tab view only if the toggle value is true.

 Screen 1.png

 

Also, I want to mention my tabs are not separate button. They are different items button from the gallery.

 

Thanks,

 
 
Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Toggle.OnCheck = UpdateContext({someVariableName: true})

     

    Toggle.UnCheck = UpdateContext({someVariableName: false})

     

    Then, for all the controls you wish make View/Edit:

     

    YourControl.DisplayMode = If( someVariableName, DisplayMode.View, DisplayMode.Edit)

     

    I think some logic along these lines should work for you

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

    Hi @Anonymous ,

    Could you tell me do you want to change a control's mode between edit and view or change a control's visible?

    Firstly, you could set a variable as @Anonymous  said.

    Toggle.OnCheck = UpdateContext({someVariableName: true})
    
     
    
    Toggle.UnCheck = UpdateContext({someVariableName: false})

    Then, set the control's mode or Visible.

    If you want to change its mode between edit and view, then you need to set its DisplayMode to this variable.

    If you want to change its visible, then you need to set its Visible to this variable.

    What's more, do you mean that your tabs are items in a gallery?

    In gallery, you can not use visible to decide an item whether display.

    I suggest you use filter function.

    Set the gallery's Items: 

    If(someVariableName,Filter(table, Not(fieldname="intake")),table)

     

     

    Best regards,

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