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
The browser versions are same. The interesting part is that validations works in CRM 2011 but have problem with CRM 2015.
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.
Please verify that your Customer browser settings and Version are same as your browser settings and Version
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 :)
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.
Hi,
Can you please share your code?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156