Announcements
Hello everyone,
I have this function on select
it works well, but after run time, I get this error :
I believe it is patch function, does anyone how how to rest a variable
Any help is appreciated.
What is varFormMode?
In the second part you need to put an item
Like this (to create a new item):
Patch(
Datasource,
Defaults(Datasource),
FormUpdates
)
Like this (to edit an item):
LookUp(Datasource, ID = ThisItem.ID),
Check the patch function:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-patch
But if you are using a form you could use SubmitForm() and you should have that Notification and Navigate on Proeprty OnSucess
If you need additional help please tag me in your reply and please like my reply.If my reply provided you with a solution, pleased mark it as a solution ✔️!Best regards,Gonçalo NogueiraCheck my LinkedIn!Buy me a coffee!Check my User Group (pt-PT)!Last Post on CommunityMy website!
@PaulMatha when using a Form you do not need to use the patch function.
So replace your patch function with SubmitForm(DetailsForms)
And in addition. Place all formulas after your current patch statement in the OnSuccess Property of the Form.
OnSuccess will be triggered if the Submit was really successfull.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 383 Super User 2026 Season 2
Mohsin Ali 356
WarrenBelz 232 Most Valuable Professional