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 / Customize forms - Form...
Power Apps
Unanswered

Customize forms - FormMode.New problem

(0) ShareShare
ReportReport
Posted on by 3

Hi! I'm working with sharepoint list customize forms.

I wrote a function in MainScreen OnVisible

 

If(formMain.Mode = FormMode.New, UpdateContext({formTypeNew:true}), UpdateContext({formTypeNew:false}));

But when I click New button in SP list and new form is opened, formNewType value is always false.

I've tried to change the condition to formMain.Mode = FormMode.Edit, in this case formTypeNew value is true.

But it's a new form, not old one. Is there a problem in my formula? It's working fine in common powerapp, not customize forms' one.

 

Categories:
  • Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    The SharePointInegration control is setting the form mode for PowerApps custom forms. In your code you are referencing "formMain" and the auto generated form is called "SharePointForm1", so I am assuming that you have been making some changes to what was auto generated. If this is the case you will need to look at the Advance properties pane for "SharePointIntegration" and see how the New, Edit and View forms are being set.

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 312

#3
Mohsin Ali Profile Picture

Mohsin Ali 252

Last 30 days Overall leaderboard