cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
xxxxmints
Helper IV
Helper IV

Stop form from prefilling with SharePoint list item

Hello 

I have a very simple form.

Your Name (people picker), Your Area (choice), If other (text) and comments (multline text) and submit button.

In a SharePoint list, I click on New and it's lovely (see pic 1)

Using the App ID I have a SharePoint web part and put it on a page.

The form displays the name, area etc from the first item in the list. (see pic 2)

I go into PowerApps and it happens there as well. 

How do I stop PowerApps from prefilling with a previous item. I just want the field blank.

Thank you.

Mel 

1 ACCEPTED SOLUTION

Accepted Solutions
v-yutliu-msft
Community Support
Community Support

Hi @xxxxmints ,

Could you show me how do you set this: "Using the App ID I have a SharePoint web part "?

I do not quite understand what is a SharePoint web part?

Do you mean that when you click "New", you want the SharePoint web part display blank value like pic1?

If the SharePoint web part is a form, please set its mode to New when you run the custom form.

set the SharePointIntegration's OnNew:

NewForm(SharePointForm1);NewForm( SharePoint web part form name)

265.PNG

 

 

Best regards,

Community Support Team _ Phoebe Liu
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
WarrenBelz
Super User
Super User

Hi @xxxxmints ,

Make the default mode of the form FormMode.New.

When you save the form

SubmitForm(<FormName>);
ResetForm(<FormName>);
NewForm(<FormName>)

Is this what you are after?

 

If this post helps, then please consider Accept it as the solution to help the other members find it more. It also closes the item. 

v-yutliu-msft
Community Support
Community Support

Hi @xxxxmints ,

Could you show me how do you set this: "Using the App ID I have a SharePoint web part "?

I do not quite understand what is a SharePoint web part?

Do you mean that when you click "New", you want the SharePoint web part display blank value like pic1?

If the SharePoint web part is a form, please set its mode to New when you run the custom form.

set the SharePointIntegration's OnNew:

NewForm(SharePointForm1);NewForm( SharePoint web part form name)

265.PNG

 

 

Best regards,

Community Support Team _ Phoebe Liu
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
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,466)