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 / Issue with multiple sa...
Power Apps
Answered

Issue with multiple same controls on same form

(0) ShareShare
ReportReport
Posted on by 41

I'm having an issue with having multiple instances of the same control on the form. I have them setup in different sections/tabs and on initial load - both are fine. But when I switch back from the second control to the first tab I get the odd behavior.

The first updateView call everything works good. But then I get the second updateView call and it contains data from the second instance - including the context.parameters. I'm not sure how to stop this behavior as it's overriding my data. What's really odd is the dataset doesn't change (it still shows the correct dataset). What I'm trying to do is render a custom button on a grid and the text for the button is flipping to the second tab's text on the first tab after that second updateView.

 

I hope that makes sense. Thanks!

I have the same question (0)
  • Verified answer
    cchannon Profile Picture
    4,702 Moderator on at

    So this is probably because the namespace of your controls are the same so they're stepping on each other WRT the definition of "this" and your variables are cross-pollinating.

     

    Storing at least some values at the namespace level is probably inescapable, such as "container" and "notifyOutputChanged" but if I were you I would look through the code and try to scope everything possible to within a function declaration. This will help prevent them from stepping on each other.

  • shadowfox Profile Picture
    41 on at

    @cchannon you were correct, thank you for your help! Had to refactor the code but was able to get it working. 

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 372 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 303 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 238 Super User 2026 Season 1

Last 30 days Overall leaderboard