Hello,
I have a java script function on load of the form which eventually calls - formContext.getAttribute("new_fieldame").addOnChange(fucntionname).
But on load of new lead form or existing lead form, following error is occurred -
formContext.getAttribute(...).addOnChange is not a function
This error was not occurring on other environment (having same JS, same form), however I could reproduce it by removing that field 'new_fieldname'.
On-load function gets called when complete form is loaded. However, I think the field is not getting loaded here.
Any idea about the occurrence of this error?
Thanks in advance.