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 / Submit Form with Patch...
Power Apps
Unanswered

Submit Form with Patch together (same button)

(0) ShareShare
ReportReport
Posted on by 2

Hey! I have two lists in sharepoint. One with the general status of a recommendation and another where I want to put all the updates that will be made to the recommendation until it is completed. On a screen I would like to update the status in a list, using a path and at the same time submit a forms in the second list. The commands alone work fine, but when I try to put both on the same button, it just doesn't work. Here goes my code. Can you help me?

 

Patch('recommendations'; Gallery_view_recomendation.Selected;
{
'Status Geral': Dropdown_register.Selected.Value

});;

IfError(SubmitForm(Form_update); Notify("Error! ";NotificationType.Error);

Notify(
"Saved action plan registration";
NotificationType.Success;
3000
) And Refresh('register') And ViewForm(Form_update));;

 

Categories:
I have the same question (0)
  • mmollet Profile Picture
    3,187 on at

    You can submit the form then use the form's onsuccess property to execute the patch. It is generally accepted to use the onsuccess property of the form rather than tag calls onto the end of the submit call

     

    So instead of SubmitForm(Form1); Navigate(Home);

    you would put the navigate call in the form's onsuccess property. 

  • amandalopesq Profile Picture
    2 on at

    Hey! If I do it that way, the General Status column just returns empty.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard