cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Haru
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.

 

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
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (10,363)