cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Power Automate
Power Automate

NewForm(EditForm1) Check

When using NewForm(EditForm1) vs. EditForm(EditForm1), how can I check in runtime from the screen where the EditForm1 is, which state the form is in now (New or Edit)?

 

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Power Apps
Power Apps

Re: NewForm(EditForm1) Check

Form has a "Mode" property that you should be able to use.

 

EditForm1.Mode = FormMode.Edit, "Edit mode", "New Mode"

 

You can find the reference here https://powerapps.microsoft.com/en-us/tutorials/control-form-detail/. Look in "Key Properties" section for details about FormMode

 

Hope this helps.

 

Thanks

Murali

View solution in original post

2 REPLIES 2
Highlighted
Power Apps
Power Apps

Re: NewForm(EditForm1) Check

Form has a "Mode" property that you should be able to use.

 

EditForm1.Mode = FormMode.Edit, "Edit mode", "New Mode"

 

You can find the reference here https://powerapps.microsoft.com/en-us/tutorials/control-form-detail/. Look in "Key Properties" section for details about FormMode

 

Hope this helps.

 

Thanks

Murali

View solution in original post

Highlighted
Regular Visitor

Re: NewForm(EditForm1) Check

If(EditForm1.Mode=FormMode.Edit,"Edit Form", "New Form")  does not work.
EditForm1.Mode is not evaluable. The expression always returns "NewForm"

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,112)