Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum
Unanswered

UCI Error: Cannot read property 'preventDefault' of undefined

Posted on by 5

Hello,

I am unable to solve this error it is coming on change of sales process field. Function is called on Save.

if (executionContext != null) {

executionContext.getEventArgs().preventDefault();

}

How to solve this in UCI, or is there any alternative to resolve this.

*This post is locked for comments

  • RE: UCI Error: Cannot read property 'preventDefault' of undefined

    Hello,

    Could you please provide more details about your scenario?

    1 - In which entity are you using the preventDefault()?

    2 - What is the schema name of sales process field?

    3 - Can you share the sample code that you are using? Please do not share any PII information.

    The error message indicates that we are getting an undefined value and we cannot use preventDefault on that.

    Using developer tools (F12) you can debug the code creating some breakpoints. This will help you to understand what is as undefined.

    Thank you in advance.

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

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

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,263 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,112 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans