cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Connor_Taylor
Resolver I
Resolver I

Submitting a form for a new record, Item value

Hi all,

What should the value for 'Item" be for the form I'm submitting if I want to create a new record? (not edit a current record)

 

It's currently blank, so I get the error 'a value must be provided for item' and I imagine this is meaning the actual 'item' value.

 

Thank you 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Drrickryp
Super User
Super User

@Connor_Taylor,

The form mode is usually set by an EditForm(Form1) or NewForm(Form1) function in a button or icon’s OnSelecr property. The Item property for an Edit form is usually Gallery1.Selected. it is ignored when the form mode is New. If you are only using your form for submitting new data, set it’s default mode to New in the right hand column with the  form selected (use the breadcrumbs on the bottom of the screen) rather than Edit. 

View solution in original post

4 REPLIES 4
Drrickryp
Super User
Super User

@Connor_Taylor,

The form mode is usually set by an EditForm(Form1) or NewForm(Form1) function in a button or icon’s OnSelecr property. The Item property for an Edit form is usually Gallery1.Selected. it is ignored when the form mode is New. If you are only using your form for submitting new data, set it’s default mode to New in the right hand column with the  form selected (use the breadcrumbs on the bottom of the screen) rather than Edit. 

Thank you, your explanation was very helpful.
But it seems I had already done all this and still get the error 'The request operation is invalid. Server Response: a value must be provided for item'.

Any thoughts on what this could be then?

The form is set to 'New' and is called by a NewForm(form1) and every value in the form has a text input assigned to it.

What platform are you using, excel, sharepoint, etc. If it's sharepoint, are any columns Choice or lookup types?

Data is connecting to a SQL server

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (1,389)