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 / Power App Form in Edit...
Power Apps
Unanswered

Power App Form in Edit Mode

(0) ShareShare
ReportReport
Posted on by

Hi ,

I'm using a Power App form of single screen with functions

 

Onstart : Set(varFormmode,FormMode.New);Set(varitem,Blank());If(!IsBlank(Param("ID")),Set(varitem,LookUp('SAP - UAI',ID=Value(Param("ID"))));Set(varFormmode,FormMode.Edit))

 

Form Default Mode : VarFormmode

Form Item : Var item 

 

OnSucess : Patch('SAP - UAI',First(Filter('SAP - UAI',ID=Form1.LastSubmit.ID)),{RD:Label1.Text});
If(varFormmode=FormMode.New,
'SAP-AUTOMATIONFLOW_1'.Run(Form1.LastSubmit.ID););
Notify("Your Submission has received",NotificationType.Success);ResetForm(Form1);

 

 

I've used this link in  power automation  to redirect the approver to the edit form mode in powerapps 

<a href="https://apps.powerapps.com/play/2d50099c-fc38-4b95-8f1a-23289d33ebcb?tenantId=7ae9f7e7-41b8-4281-a3fd-be67c4f82de9&ID=@{outputs('Update_item')?['body/ID']}">Link to the form</a>

 

While clicking on the link the details of the user are autopoulated in the form but not been able to submit the form in the Powerapp form

 

Any help on this would be highly appreciated

 

Categories:
I have the same question (0)
  • anibra Profile Picture
    278 on at

    Hi @Anonymous,

    I think you should have your Patch function in a Submit button and  not in OnSuccess of the form.

     

    Hope this helps.

    Regards,

    AK

  • Sanshubh Profile Picture
    512 on at

    When and where are you submitting the form?

  • Community Power Platform Member Profile Picture
    on at

    Hi, 

    I have tried to use the patch function in the submit button , then also I'm facing the same issue , when the approver tries to edit the user request information , the details are getting captured in the sharpoint list but the form is still showing every details of the user after clicking submit button

     

    the below images shows the image of the form after clicking the submit button by the approver

    Emptyglasses_0-1664253967488.png

     

     

  • Community Power Platform Member Profile Picture
    on at

    Hi , 

    when the user fill out the details and submit the form a mail will be send to the approver for adding remarks in the form  (the details are getting captured in the sharepoint list name -"SAP - UAI")

    Emptyglasses_1-1664254230588.png

    when the approver tries to edit the user request information , the details are getting captured in the sharpoint list but the form is still showing every details of the user after clicking submit button

     

     The app functions are below

    Onstart : Set(varFormmode,FormMode.New);Set(varitem,Blank());If(!IsBlank(Param("ID")),Set(varitem,LookUp('SAP - UAI',ID=Value(Param("ID"))));Set(varFormmode,FormMode.Edit))

     

    Form Default Mode : VarFormmode

    Form Item : Var item 

     

    OnSucess : Patch('SAP - UAI',First(Filter('SAP - UAI',ID=Form1.LastSubmit.ID)),{RD:Label1.Text});
    If(varFormmode=FormMode.New,
    'SAP-AUTOMATIONFLOW_1'.Run(Form1.LastSubmit.ID););
    Notify("Your Submission has received",NotificationType.Success);ResetForm(Form1);

     

    Please help to me to find a solution

  • Sanshubh Profile Picture
    512 on at

    You are submitting the form on SUBMIT button?

  • Community Power Platform Member Profile Picture
    on at

    Hi,

    Yes, I'm using the submit button for submitting the form SubmitForm(Form1)

  • Sanshubh Profile Picture
    512 on at

    I think you are not sending dynamic ID in link.(<a href="https://apps.powerapps.com/play/2d50099c-fc38-4b95-8f1a-23289d33ebcb?tenantId=7ae9f7e7-41b8-4281-a3f...']}">Link to the form</a>)

     

    And also please specify what do you want?

    You want to reset form or Send Email what is problem.

  • Community Power Platform Member Profile Picture
    on at

    I just want the form should be reset when the approver submit the form in the editmode 

    when the approver clicks on the link he is able to see the user details and make changes but form isn't resetting when clicks on the submits button

     

  • Sanshubh Profile Picture
    512 on at

    reset form on SUBMIT button On click.

     

  • Community Power Platform Member Profile Picture
    on at

    I have tried to use the resetform on submit button, but i facing some errors in onSucess by doing so and the automation flow is not running from the onsucess 

     

    Emptyglasses_1-1664261417952.png

     

    Emptyglasses_0-1664261350970.png

     

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard