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

Create new sharepoint item lists with a form from powerapps

I have a list in my sharepoint called "inventory", i need a form in powerapps that has only the function to ADD totally new list items to the sharepoint list, the problem is, when i put the the form in, and try to test the app, it says "there's no element to show", and when i try to give it an item, like linking it to a gallery that's connected with the exact same sharepoint list, and put in the item section of the form the function: "gallery1.selected", then it shows the info, but if i modify any of the data of the form, then it will not generate a new item, it will modify the selected item, and that's not what i want...

 

I need that the form shows the text entrys totally blanks, and then, when i saved the info that i typed in, with a button with the function: "submitform(form1)", it creates a totally new item in the sharepoint list; thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Create new sharepoint item lists with a form from powerapps

Hi @GiovanniMugno ,

Based on the issue that you mentioned, I think there is something wrong with the DefaultMode property of the Edit form in your app.

Please consider set the DefaultMode property of the Edit form in your app to following:

FormMode.New

Set the OnSuccess property of the Edit form to following:

ResetForm(Form1)

4.JPG

 

Please take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Super User
Super User

Re: Create new sharepoint item lists with a form from powerapps

Hi @GiovanniMugno ,
This is a common issue to encounter. The fix is to set the DefaultMode Property of your form to FormMode.New (instead of FormMode.Edit).Hope this helps.

image.png

Community Support Team
Community Support Team

Re: Create new sharepoint item lists with a form from powerapps

Hi @GiovanniMugno ,

Based on the issue that you mentioned, I think there is something wrong with the DefaultMode property of the Edit form in your app.

Please consider set the DefaultMode property of the Edit form in your app to following:

FormMode.New

Set the OnSuccess property of the Edit form to following:

ResetForm(Form1)

4.JPG

 

Please take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (4,685)