web
You’re offline. This is a read only version of the page.
close
Skip to main content
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,271

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:
I have the same question (0)
  • mmbr1606 Profile Picture
    14,560 Super User 2025 Season 2 on at
    Re: Using the same form to Edit, View or Add

    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,271 on at
    Re: Using the same form to Edit, View or Add

    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,560 Super User 2025 Season 2 on at
    Re: Using the same form to Edit, View or Add

    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,271 on at
    Re: Using the same form to Edit, View or Add

    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,560 Super User 2025 Season 2 on at
    Re: Using the same form to Edit, View or Add

    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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard