cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Haru
Frequent Visitor

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.

 

1 REPLY 1
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

Announcements
secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Top Solution Authors
Top Kudoed Authors
Users online (7,658)