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 / Select a button from a...
Power Apps
Unanswered

Select a button from another screen

(0) ShareShare
ReportReport
Posted on by 11

Hey everyone, 

on one screen I have a button. When it is selected, a lot of collections will be created based on SharePoint-lists. I want to select that button and refresh the collections from another screen, more precisely when a form is sucessfully submitted. Do you have any suggestions? 

Thanks in advance! 

Categories:
  • OdinDelToro Profile Picture
    407 on at

    Hello @hguenther ,

     

    You can use the Select() function to select the button from another screen. Here is the official documentation about the function Select function - Power Platform | Microsoft Learn

     

    You can include on the onsuccess property of the form the logic to select the button that will apply the logic you're looking for such as refresh collections, etc.

     

    Hope this helps clarify the doubt, let me know in case you're still facing an issue within it.

    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.

  • HannahSommer Profile Picture
    11 on at

    Hey @OdinDelToro , 

    thanks for the quick reply!To use Select() was also the first thing that came to my mind. But in the documentation it says that Select() is not possible to use across screens. That's why I posted the question in the first place. 

  • OdinDelToro Profile Picture
    407 on at

    Hello @hguenther ,

     

    Thanks for the clarification, in reality, there is not a simple way to achieve the functionality desired. You can explore other options such as using another control as with buttons you won't be able to achieve that. You can use a combination with a toggle and variable. 

     

    Here is a blog from Alexander Schirmer with similar challenge: 

    Reuse code in Power Apps – across screens! – considerITman

     

    You can also review the answer from iAm_ManCat

    Solved: Call code, easy way to reuse code? - Power Platform Community (microsoft.com)

     

    Hope this helps clarify the doubt, let me know in case you're still facing an issue within it.

    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.

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @hguenther,

    If you just want to referesh the collection after you successfully submit a form, I think we could just ignore the Select() function.

    We could just copy the formula from the Button that you generate the collections from another screen, and then paste it on the OnSuccess property of the form, then, it will refresh the collection directly.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard