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.
Solved! Go to Solution.
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 !
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.
User | Count |
---|---|
251 | |
102 | |
94 | |
48 | |
37 |