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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Object doesn't support property or method 'addOnKeyPress' event

(0) ShareShare
ReportReport
Posted on by 3,634

I am following this blog as it is for adding on key press event on Name field of account but I cannot get the things done but came across with error at onload event.

on-key-press-ev3ent.png

Additional:


I tried to debug the library but unfortunately it throws exception before reaching to the original code. Also, there is no any other library added to the form.

Update 2:


It is cross checked that it is main form not the mobile or tab form and also it is name field of account which is text field.

*This post is locked for comments

I have the same question (0)
  • Wayne Walton Profile Picture
    13,730 on at

    Did you check the limitations here? msdn.microsoft.com/.../gg334266.aspx

  • Suggested answer
    Saroj Das Profile Picture
    3,355 on at

    Hi, This code is working fine for me i tested it. Please check at your end if you are missing something

    3276.error.JPG

    Thanks,

    Saroj

  • Mohsin Ali Profile Picture
    3,634 on at

    yes, I modified the code according to Javascripts.

  • Mohsin Ali Profile Picture
    3,634 on at

    It is for name field of account entity and for normal form not for mobile forms.

  • Verified answer
    Mohsin Ali Profile Picture
    3,634 on at

    The problem is resolved. I just set the legacy form rendering to no and it worked. Not sure how form rendering effects the AutoComplete Feature.

  • Wayne Walton Profile Picture
    13,730 on at

    It's a new function for the new forms, so it doesn't exist to be called on the legacy forms.  Glad you got things sorted out.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans