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 / Dynamically change the...
Power Apps
Unanswered

Dynamically change the tabs based on checkbox value

(0) ShareShare
ReportReport
Posted on by 43

Hello,

 

I am loading tabs on the Onstart of the canvas app into a collection, so basically i divided a form into 3 tabs, and loading those with the collection name to gallery items property, now when a check box is checked i would like to load another tab to that same gallery.

 

how can i dynamically change the tabs or add a new tab to the gallery based on checkbox value on the editform screen?

 

 

 

Thanks in advance....

Categories:
I have the same question (0)
  • Verified answer
    SpongYe Profile Picture
    5,603 Super User 2025 Season 2 on at

    Hi @Samek 

     

    You can use Patch to add a new tab to the collections.

    For example my collection is:

    ClearCollect(
     colTabMenu,
     {ID: 1, Name: "Overview"},
     {ID: 2, Name: "Profile"}
    )

     

    You can add a new record:

    Patch(
     colTabMenu,
     Defaults(colTabMenu),
     {ID: Max(colTabMenu,ID)+1, Name: "NewItem"}
    )

     

    SpongYe_0-1713379053083.png

     

     

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

  • Sammen Profile Picture
    43 on at

    Hi @SpongYe ,

     

    Thanks for the help 👍. can i change the order of the tabs? it is not changing the order with ID number, and on uncheck of the checkbox i need to clear the tab from collection, can you help with this?

     

     

     

    Thanks again.....

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard