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 / Using the same form to...
Power Apps
Unanswered

Using the same form to Edit, View or Add

(0) ShareShare
ReportReport
Posted on by 3,295

Hello community. I have beeing dealing with this for days and I hope someone could point me in the right direction.

In my app I have a button to create a "New Request". This action will do this:

 

Set(var_FormMode, "New"); Set(varRecord, Patch(Tbl_Database, Defaults(Tbl_Database), {Title: GUID(), Global_Status: "Draft"})); Navigate(Screen_NewEditRequests))
 
In the Screen "NewEditRequests" I have the following:
DefaultMode = If(var_FormMode = "New", FormMode.New, FormMode.Edit)
Item = If(var_FormMode = "New",varRecord, var_EditRecord)
 
The var_EditRecord came from a different screen with the OnSelect for a Gallery 
 
All the data is in a Edit form with a SubmitForm action.
 
What I want to do is save the user progress but If I hit the submit button the form will be blank and I have to go back and load the data.
 
If possible to perform the save at any time so the user can continue adding data, saving and continue seeing the data in the form?
 
Thanks in advance for any help.
 
Regards
Categories:
  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    hey @sajarac 

     

    this video should helo you solve your issue:

    Power Apps Gallery Edit Form Tutorial for Beginners (youtube.com)

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • Sajarac Profile Picture
    3,295 on at

    Hi @mmbr1606  for the video suggestion. 

    Just a silly question? At the beginnig of the video Reza mentioned that is only applicable for the gallery and the form on the same screen, right?. Do you have any other video that explains doing this from different screens? I have been trying to implement that solution but my scenario is having a screen where the user can either Add a new request or navigate to View Request and in there view the request details to later edit.

    Thanks in advance for any response.

    BR

  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    hey @sajarac 

     

    it would be the same and just need to add Navigate(Screenname) to navigate to the next screen.

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • Sajarac Profile Picture
    3,295 on at

    Hi, thank you very much for the prompt response. Well navigating from the Gallery and editing the form. Yes it works as expected. But From the main screen and Adding a new Request after saving I am getting a different record on the form. I will double check for sure I have missed something.

  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    hey @sajarac 

     

    when u need a new form you just need to use Newform(FormName) and then Navigate(ScreenName)

     

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard