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 / PowerApps Form - updat...
Power Apps
Unanswered

PowerApps Form - updating form from new to edit

(0) ShareShare
ReportReport
Posted on by 175

Hi all,

 

The documentation on this is quite confusing for me. Here is my scenario:


MES v2 Delay Screen.PNG

 


I have this "delay window" that pops up if a user selects a button. I need the user to be able to select the "delay type" and "description" and then be able to hit the "start delay" button which will submit the form with that info. After the delay has been started, I need the form to change from NEW to EDIT with the last submitted record as the now current item. The delay type and description should not be reset here. 

 

From there, the "start delay" button will disable and the "stop delay" button will become enabled. Once "stop delay" is hit, this record is updated with a delay endtime (this field is hidden). Then I need the form to reset and the delay screen to close. However, I then need to erase the LastSubmit() record so that once the user tries to enter in another delay, the previously submitted record won't show up.

 

I've been trying different things, but I can't get my exact requirements. I think I'm misunderstanding the documentation on how the Form changes from FormMode.New to FormMode.Edit after submission. Any tips?

 

Thanks,

Farhan 

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @farhandsome 

    While not getting into the details of what you are doing, all forms have a Default Mode property (either Edit, New, or View) but it is changed dynamically by using either ViewForm(), EditForm() or NewForm().  This command would be placed  in a navigation string like 

     

     

    EditForm(Form1);Navigate(EditScreen,None)
    NewForm(Form1);Navigate(EditScreen,None) or
    ViewForm(Form1);Navigate(EditScreen,None) in the case where you want the form to be read-only

     

     

     If the form is on the same screen as a gallery that contains the Item you want to edit, you would put EditForm(Form1) inside the gallery, typically on a > icon's OnSelect property.  If you wanted to create a new Item, you would put NewForm(Form1) on a + icon outside of the gallery.  

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 226 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 191 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 167

Last 30 days Overall leaderboard