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 / Form remains in Mode.N...
Power Apps
Answered

Form remains in Mode.New after EditForm

(0) ShareShare
ReportReport
Posted on by

Hi, I'm using Powerapps with Dataverse for Teams.

I simply want to enable/disable a 'delete' button depending on whether a form is in 'New' or 'Edit' mode, but it seems the form always stays in New mode.

The OnSelect property of my edit icon is set to this;

 

EditForm(FormVoaItm)

 

I set the DisplayMode property of the delete button to this ;

 

If(FormVoaItm.Mode.New, DisplayMode.Disabled, DisplayMode.Edit)

 

 

After clicking the edit icon, I can see my form is still in New mode and the 'Delete' button is still disabled.

It looks like a bug to me, but any hints would be appreciated.

Categories:
I have the same question (0)
  • Verified answer
    BCBuizer Profile Picture
    22,565 Super User 2026 Season 1 on at

    Hi @lolbeat ,

     

    Please change your formula to:

     

    If(FormVoaItm.FormMode = FormMode.New, DisplayMode.Disabled, DisplayMode.Edit)
  • lolbeat Profile Picture
    on at

    Ha ha..now i see...myForm.Mode.New always resolves to 1 (Edit to 0, etc) right ? OK, I learnt something today...many thanks 🙂

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard