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 / Two Functions in Button
Power Apps
Unanswered

Two Functions in Button

(2) ShareShare
ReportReport
Posted on by

I'm having trouble adding two functions to the same button, "SubmitForm(EditForm1)" and "Navigate(Screen 2)".  Both functions work perfectly when called separately, but I can't seem to get them to work together.

Categories:
I have the same question (0)
  • LaurensM Profile Picture
    12,516 Moderator on at

    Hi @GabrielJardimRp,

     

    What specific error are you receiving? When working with a Form control it is recommended to write your code, that only needs to run after a successfull submission, within the Form's OnSuccess property instead of chaining them in the Submit Button's OnSelect.

     

    //Button OnSelect
    SubmitForm(EditForm1)
    
    //Form OnSuccess
    //Note: screen names with a space should be enclosed in single quotes
    //Without a space this is not required: Navigate(Screen2)
    Navigate('Screen 2')

     

    To combine functions, you can use the chaining operator - which is dependent on your language decimal operator:

    //Language with a comma decimal separator
    Function1();; Function2()
    
    //Language with a dot decimal separator
    Function1(); Function2()

     


    If this solves your question, would you be so kind as to accept it as a solution✔️

    If you liked my solution, please give it a thumbs up👍

     

    Connect with me: LinkedIn | Blog

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
WarrenBelz Profile Picture

WarrenBelz 525 Most Valuable Professional

#2
Haque Profile Picture

Haque 308

#3
Kalathiya Profile Picture

Kalathiya 234 Super User 2026 Season 1

Last 30 days Overall leaderboard