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)

Onchange event does not fire sometimes in Forms

(0) ShareShare
ReportReport
Posted on by

Hi

I have some js functions in my forms, that fire when a field changes. But these functions does not work something. I even put a "deubbger" and used browser developer tools to see if the code reaches to the function, but it seems it does not call it at all.

Is there any reason for that ? I have spent lots of time with many browsers but have not got any solution. The wonderful thing is that it happens in Dynamics CRM 2015, and I have never seen it in 2011 Version.

*This post is locked for comments

I have the same question (0)
  • Nithya Gopinath Profile Picture
    17,078 on at

    Hi,

    Can you please share your code?

  • Community Member Profile Picture
    on at

    Hi

    Here is how I send parameters to tho function. I configure it in onchange event of the field properties windows in CRM form:

    fieldName="",checlen=11

    And here is the function :

    function digitValidateOnChange(context,fieldName,checlen,untilLenghthCheck)

    {

    var reg = /^-?\d*\.?\d+$/;

    //debugger;

    errorHelper(context,reg,fieldName,checlen,untilLenghthCheck);  

    }

    It works find in my browsers, but it does not work sometimes at customer browser. even When I put a debugger before "errorHelper" function it does not reach there.

  • Suggested answer
    Community Member Profile Picture
    on at

    Hello babak ,

    Does it show you any error. If yes, please do share the code. If its not showing any error, then its most likely that you have misspelled the function name added. Make sure you have added the correct function name in the event handler tab within the Form Properties form (exactly the same function name as used within JS WebResource).

    Thank you :) 

  • Community Member Profile Picture
    on at

    Please verify that your Customer browser settings and Version are same as your browser settings and Version

  • Community Member Profile Picture
    on at

    Hi Meharin

    It does not show any error. As I mentioned It works in my browser and some other customers browsers, but it does not work sometimes in a few customers browsers without any error.

  • Community Member Profile Picture
    on at

    The browser versions are same. The interesting part is that validations works in CRM 2011 but have problem with CRM 2015.  

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