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 / Patch and navigate sep...
Power Apps
Answered

Patch and navigate seperated buttons

(0) ShareShare
ReportReport
Posted on by 115

Hello,

 Is it possible to have two buttons, one button to add value and patch this and another button to change screens.

  Becouse if I use one button with both functions, it works but if I seperate these functions(one button to add, and one to navigate to the next screen) it does not respond, while the patchbutton still works.

Categories:
I have the same question (0)
  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @NielsNachtegaal ,

    You can use

    Patch(<patch syntax>);Select(Button2)

    in Button1's OnSelect property
    And in Button2's OnSelect property add

    Navigate(ScreenName)

  • TylerPA Profile Picture
    201 on at

    yes, can be setup to work. this would go into your first button:

     

     

    // patching stuff
    
    Select(Button3)

     

     

    unless you already have setup this way, and it's not working? would need to look further at your OnSelect setup

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @NielsNachtegaal ,

    Best solution if you are using Edit form , apply patch operation on button and at the same time check the Onsuccess property of form and apply navigation operation .

     

    Form Onsuccess property - Navigate(screen)

     

    Thanks,

    Chitrakant27

  • Verified answer
    NielsNachtegaal Profile Picture
    115 on at

    Thank you all for the quick responses,

    It seems that setting a variable before the patching being an issue.

     

    OnSelect Button1:

     

     

    Set(VarOrder, Amount_Input); // issue not able to navigate??
     Patch(OrderTabel,ThisItem,{Amount: ThisItem.Amount + Add_Amount})

     

     

    OnSelect Button2:

     

     

    Navigate(Order_Form, ScreenTransition.Fade);

     

    Seems to resolve the issue to Patch a add or distract and then able to navigate to the next form, so am going to work arround that some. 

     But at the moment I don't see why setting a variable makes the difference like this?  

     

     code:

     

     

    Patch(OrderTabel,ThisItem,{Amount: ThisItem.Amount + Add_Amount}); Select(Button2)

     

     

     Adding Select after the Patch only seems to activate Button2 without a click/tap.

     

     

  • Verified answer
    NielsNachtegaal Profile Picture
    115 on at

    Just needed to add .Text 

    Set(VarOrder, Amount_Input.Text); // .Text solved the issue 
     Patch(OrderTabel,ThisItem,{Amount: ThisItem.Amount + Add_Amount})

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard