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 / NewForm(EditForm1) Check
Power Apps
Answered

NewForm(EditForm1) Check

(0) ShareShare
ReportReport
Posted on by 987

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.

Categories:
  • Verified answer
    murali Profile Picture
    Microsoft Employee on at

    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

  • AE Profile Picture
    10 on at

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

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 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard