cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Applicable88
Advocate II
Advocate II

Customize Form duplicate and error message

Hello,

 

I'm using both a PowerApp Input Mask and in that Sharepoint List I also use a customize form.

In the PowerApp Input Mask I'm using something to check for duplicate ProductID. That duplicate check will

be activated when clicking on the submit button:

 

If(IsBlank(LookUp(SharepointList; ProductID=DataCardValue1.Text));
SubmitForm(Form2);;NewForm(Form2);
Notify("ProductID already in the list";NotificationType.Error);
SetFocus(DataCardValue1))

 

Since the custom form has an own "save" and "edit" button I tried to put that same formula into the 

"SharePoint Integration" Part where there is a Action called "OnSave", which apparently is the describe the actions clicking on the "Save" button.

This time I just used:

If(IsBlank(LookUp(SharepointList; ProductID=DataCardValue1.Text));
SubmitForm(SharePointForm1));
Notify("ProductID already in the list";NotificationType.Error);
SetFocus(DataCardValue1))

 

Basically I thought the save button can replaced a submit button I have in the original PowerApp, but instead nothing happens.  What did I do wrong here?

 

Thank you very much in advance.

Best. 

1 ACCEPTED SOLUTION

Accepted Solutions
gabibalaban
Dual Super User
Dual Super User

@Applicable88 ,

please check the name of the form inside sharepoint integration. I might be different from the one you invoked in submit formula.

SubmitForm(SharePointForm1));
the form control has most probably a different name.

Hope it helps !

View solution in original post

2 REPLIES 2
gabibalaban
Dual Super User
Dual Super User

@Applicable88 ,

please check the name of the form inside sharepoint integration. I might be different from the one you invoked in submit formula.

SubmitForm(SharePointForm1));
the form control has most probably a different name.

Hope it helps !

@gabibalaban thank you very much, I'm still somehow think that I put the same formula in their yesterday... but today it suddenly works out. Thanks for reminding me that sometimes there are little but crucial reference mistakes. 

 

Best regards. 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

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