Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

Customize forms - FormMode.New problem

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.


Super User
Super User

Re: Customize forms - FormMode.New problem

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.

If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

Helpful resources


Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020


Power Platform World Tour

Coming to a city near you


PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Join PowerApps User Group!!

Connect, share, and learn with your peers year-round


Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 235 members 4,333 guests
Please welcome our newest community members: