Hello - How can i force a "save and close" with JavaScript if somebody clicks "Save" on a new/create entity form? Thanks in advance.
*This post is locked for comments
Hello - How can i force a "save and close" with JavaScript if somebody clicks "Save" on a new/create entity form? Thanks in advance.
*This post is locked for comments
Thanks Scott!
Hi,
You would need to create an onsave handler that cancels the save event and then manually calls formContext.data.entity.save('saveandclose')
OnSave Event handers - docs.microsoft.com/.../addonsave
Save Function docs.microsoft.com/.../save
Hope this helps
Mohamed Amine Mahmoudi
83
Super User 2025 Season 1
Community Member
52
Victor Onyebuchi
6