Notifications
Announcements
No record found.
Hi, I'm getting an error after adding a JS library, and function below is assigned to OnLoad event.
function ShowCustomerFields()
{ // Xrm.Utility.alertDialog(" Test"); }
tested with an empty function, still get the error one of the scripts for this record has caused an errortypeError:ShowCustomerFields() is anot a function at eval(eval atRunHandleInternal ...any ideas what causes this ? Thanks
*This post is locked for comments
This is due to the new form rendering in crm 2015. Go to system settings and turn legacy form rendering on. This should solve the issue.
Hi Wissam Bakri,
Please remove the brackets Onform Load.Its Should be ShowCustomerFields not ShowCustomerFields() .
Thanks
Hemant
Do not use "ShowCustomerFields" as name of the function instead on temperory basis name the function with "test" and then check the functionality, it will surely work.
I'd appreciate if you'd mark this as a Verified answer.
Thanks,
Bhavin Modi
Hi Wissam
Please change the function name and then try ..
Regards,
Kamran
Thanks Guys,
Is your Problem Solved?
Saw exactly this error the other day, removing the () after the function resolved. Seems that this happens since turbo forms as having the brackets wasn't a problem in the past.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2