web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer Service forum

executioncontext.geteventargs().preventdefault() is not working for UCI but same works in classic UI - CRM 365 9.1 online

(0) ShareShare
ReportReport
Posted on by 5

Save action is getting prevented using executioncontext.geteventargs().preventdefault() for Classic UI but same is not happening for UCI.

Can anyone help getting alternative which should work for both for UCI and classic web?

  • LeoAlt Profile Picture
    16,341 Moderator on at

    Hi partner,

    I tried in my instance() with the same code and it worked both in UCI and Classic clinet.

    5282.pastedimage1568365457945v1.png

    2376.pastedimage1568365474815v2.png

    So did you use other js functions in your code like get field values? If so, in UCI only supports using "executionContext" to get field control not "Xrm.Page.Context".

    Please kindly share your code to us and we will be able to help you better.

    Hope it helps.

    Best Regards,

    Leo

  • Dilip Verma Profile Picture
    10 on at

    In theory - this should work.

    Could you please share code and screenshot for onload event register for this Form? 

  • Pankajs69 Profile Picture
    5 on at

    I did the same but still not working.

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.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Customer Service

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans