- SixPlusAsked on March 07, 2016 at 12:23 PM
I have tried using $.noConflict() for this one page, and it still seems to be causing issues (saying JotForm is not defined). Has anyone come up with a comprehensive solution for this problem? Please do not ask me to globally run $.noConflict(). Our codebase is huge and that is simply not a feasible solution. I've uploaded the console error so you can take a look at the specific line of jquery that is causing this issue.
- CharlieAnswered on March 07, 2016 at 03:38 PM
This will indeed happen if you load form's full source code and other JS libraries on the same page. Unfortunately, the solutions you mentioned like using iFrame embed code and using $.noConflict globally in your other library are the only ones that we have. It is also mentioned in the jQuery $.noConflict documentation that this is the current solution that they have to avoid conflict from other JS libraries with jQuery: https://api.jquery.com/jquery.noconflict/