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 / Forms remains in edit ...
Power Apps
Answered

Forms remains in edit form after submitting the form.

(0) ShareShare
ReportReport
Posted on by 84

Hi,

I created an application to register Field Reports.  I am having trouble with the data transition when creating new registers.  When a user creates a new field report and submits the form (Form6_New_Edit) the message Getting Data is shown and no data is displayed or the data in the form changes to the last data browsed, depending of where the user initiated the process of registering a new field report.

 

There are 2 ways to create a new record:

  1. From the entry screen of the app: When the Form6_New_Edit is submitted the message Getting Data is Shown.
  2. From the Browse screen of the app: When the Form6_New_Edit is submitted the form changes the data shown to the last Field Report selected.

In the second screen (Browse Screen), I have a gallery (Gallery_Dashboard1) where users can select a Field Report to browse its information or to edit this information.  When an item in this gallery is selected a variable (varRecord) is created.  Thru this variable I control information displayed, record to be edited, color of selected item, among other things.  I believe that what happens is that when a new Field Report is created from the entry screen no variable has been set, so when the Form6_New_Edit is submitted the message Getting Data is shown.  When the new Field Report is created from the Browse screen generally, Info about other Field Reports have been browsed, so a varRecord is set and this information is shown when the Form6_New_Edit is submitted.

 

The expected behavior of the Form6_New_Edit is that when a user submits the form at any moment during the create a new Field Report process, the data should be submitted, and the form should maintain the current data so that the user can keep working on the new Field Report.

 

Form6_New_Edit has many fields (cards) so I divided them in groups using a Gallery in a form of tabs that controls the visibility property of the cards in the form to make it seem like the fields are located in different pages.  That is why is so important that the user can submit data at any point during the create a new field report process without having to go to the Browse screen and then returning to the record created.

 

Hope I managed to explain the issue correctly, any help with this problem is appreciated.  I found many prior entries with related topics, but none of the accepted solutions worked for me.

 

Reference Information:

  • Entry Screen:
    • Create new Field Report Button - On Select Property: New Form(Form6_New_Edit); Navigate(EditInspectionScreen, Fade)
  • Browse Information Screen:
    • Browse Gallery - On Select Property: Set(varRecord), ThisItem)
    • Create new Field Report Button - On Select Property: Reset(Gallery_Dashboard1); NewForm(Form6_New_Edit); Navigate(EditInspectionScreen, Fade)
  • Edit/New Field Report Screen:
    • Form6_New_Edit – Item Property: varRecord
    • Form6_New_Edit – OnSuccess Property: false
    • Form6_New_Edit – OnReset Property: false
    • Form6_New_Edit – OnFailure Property: false
    • Form6_New_Edit –DataSource: SharePoint List
    • Form6_New_Edit – DefaultMode: New
    • Submitt Form Button – On Select Property: SubmitForm(Form6_New_Edit)
    • Back Button – On Select Property: Refresh(DataSource); Reset(Gallery6_TABS); Reset(Gallery6_PhotoPreview); NewForm(Form6_New_Edit); Navigate(DashboardScreen, Fade)

 

01_Screen1_EntryScreen.jpg

02_Screen2_BrowseScreen.jpg

03_Screen3_NewEditInfoScreen.jpg

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at

    Hi @AFernandez ,

    Change the OnSuccess to

    Set(varRecord,Self.LastSubmit);
    ViewForm(Self)
    

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • AFernandez Profile Picture
    84 on at

    It worked, thank you very much!

     

    After submitting the form maintains de data of the new record, the only thing is that in view mode.  To keep filling the rest of the data the user must go back to the browse screen and return to the new record thru the edit form button.  Is there a way for the form to remain in edit mode after submitting the data so the user can submit and continue with the rest of the fields?  

  • WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at

    @AFernandez ,

    Like this

    Set(varRecord,Self.LastSubmit);
    EditForm(Self)
  • dperez13 Profile Picture
    432 on at

    what should the item property?

  • dperez13 Profile Picture
    432 on at

    im able to have the form go back to itself (fresh form into edit mode) on a button press, but when you try to edit other row items, it gets stuck on getting items. what kind of logic do i need in my forms item property to allow a form to both go into itself on submit, and have the 'edit' row functionality from the sharepoint online table screen.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard