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

Make all the field view only when toggle is true

(0) ShareShare
ReportReport
Posted on by

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
    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
    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

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