I have two form - One is a working form and the other is a new form essentially with some new features.
The new features to the form are new fields (some hidden) and some lookup rules. No javascript changes at all. However, when I open the new form, some of my javascript does not run. The old form works fine.
I have used an online compare tool to confirm the javascript code is exactly the same between the two.
I have disabled all lookup rules and commented out all CSS and javascript. When I load the form and hit F12 I get the following
When I click it, it brings it down to the start of my document.ready function. However, everything is commented out. This does not happen on my working form.
I am a little confused as to why this error display on one form and not the other, despite the javascript being the same (confirmed by copying and pasting both into a compare tool).