Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

executionContext.getEventArgs().preventDefault(); not working for save and close button.

$
0
0

Hi,

I am checking if the contact belongs to the organization (refer to image 1), if not throwing an error and cancel the save. 

I used executionContext.getEventArgs().preventDefault(); onSave event for Quick form. it didn't cancel the save. i looked at this article

https://crmtipsbyprm.wordpress.com/2020/08/01/executioncontext-geteventargs-preventdefault-is-not-working-for-save-close-button-click-dynamics-365/

Our team is trying to avoid Ribbon Workbench modification (avoid customization). Is there any other way to make this work? is any way I can disable the "Save and close " button when there is a validation error? 

image 1


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images