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 / Performing a save and ...
Power Apps
Answered

Performing a save and also update a field value

(0) ShareShare
ReportReport
Posted on by 116

Hello,

 

I am trying to incorporate a "Save & Submit" button. When this button is clicked, I would like to update a text field to "Yes" and also save the rest of the data on the form.

 

I currently have this

 

Patch('MyRequests', {ID: Value(ID_DataCard1.Default)},{'Start WF?':"Yes"}); SubmitForm(SharePointForm1);

 

However, this only saves the record without setting the value of the text field to Yes. I had to press the button again to update the text field.

 

Can this be achieved using Power Apps?  Please help

 

 

Categories:
I have the same question (0)
  • RezaDorrani Profile Picture
    12,145 on at

    Hi @cooltechie 

     

    Let it only submit form 

     

    then on the OnSuccess property of the form

     do

     

    Patch('MyRequests', formname.LastSubmit, {'Start WF?':"Yes"});

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

  • cooltechie Profile Picture
    116 on at

    Hi Reza,

     

    Thank you for your response. Currently the On Success form event has

     

    ResetForm(SharePointForm1); RequestHide()

     

    Should I keep this or remove?

  • Verified answer
    RezaDorrani Profile Picture
    12,145 on at

    Hi @cooltechie 

     

    Keep it

     

    perform your ptach before these

     

     

  • cooltechie Profile Picture
    116 on at

    Tried and unfortunately it didn't work. It submits the form but doesn't update the field,

  • RezaDorrani Profile Picture
    12,145 on at

    @cooltechie 

     

    Share screenshot of OnSuccess property of the form

  • cooltechie Profile Picture
    116 on at

    I take that back. I cleared cache and it seems to be working. Thank you.  Now how do I  make the button disabled after I submit?

  • RezaDorrani Profile Picture
    12,145 on at

    Hi @cooltechie 

     

    after your submit

    the onscuccess property will patch then reset form and then request hide (which should close the form window)

    so not sure why you need to disable the button

  • cooltechie Profile Picture
    116 on at

    That is a requirement. The reason is that if the user views the form the disabled button will tell him that it was submitted,

  • RezaDorrani Profile Picture
    12,145 on at

    Hi @cooltechie 

     

    Is this a submit button that you created or is the the default submit button that shows up on the form screen menu?

     

    I need to understand the scenario when you want to disable

    A screenshot would help

  • cooltechie Profile Picture
    116 on at

    Actually the submit & save logic did not work once I opened a new browser.

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 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard