What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Unable to load Submissions Page due to JavaScript Errors when Using JavaFX WebView and WebEngine

    Asked by AskRose on September 25, 2015 at 02:34 PM

    I've been attempting to use JavaFX's WebView and WebEngine elements to load your page. When I attempt to go to the submissions page for any of my forms I receive the following JavaScript errors:

     

    Error from site: http://www.jotform.com/server.php?action=getLoggedInUser&callback=Utils.setUserInfo&includeUsage=1&v=3.3.9183&nocache=1443205591

         With message: ReferenceError: Can't find variable: Utils

         At line: 1

    Error from site: http://www.jotform.com/server.php?action=getSavedForm&formID=session&callback=Submissions.getFormProperties&checkPublicity=yes&v=3.3.9183&nocache=1443205591

         With message: ReferenceError: Can't find variable: Submissions

         At line: 1

    Error from site: http://www.jotform.com/server.php?action=getSetting&identifier=form&key=columnSetting&callback=Submissions.getColumnSettings&v=3.3.9183&nocache=1443205591

         With message: ReferenceError: Can't find variable: Submissions

         At line: 1

    Error from site: http://www.jotform.com/server.php?action=getExtGridStructure&callback=Submissions.initGrid&formID=session&type=submissions&v=3.3.9183&nocache=1443205591

         With message: ReferenceError: Can't find variable: Submissions

         At line: 1

     

    I'm not sure if this is something with my mishandling of the WebEngine and JavaScript of if this an error in the JavaScript. Also, the attached image is my final view when I try to load the submissions page.

    Page URL:
    http://www.jotform.com/submissions/50324450184144

    Screenshot
  • Profile Image

    Answered by KadeJM on September 25, 2015 at 03:15 PM

    It seems to me that you are basically having JS Errors when attempting to access your form submissions here on JotForm using JavaFX.

    I did a quick glance and found this http://docs.oracle.com/javafx/2/webview/jfxpub-webview.htm and this http://download.java.net/jdk8/jfxdocs/javafx/scene/web/WebEngine.html on the web as I am uncertain if that is what you are talking about using or not since it sounds like you are using some third-party program possibly?

    I'll willingly admit that I have come across some minor javascript errors before though none as of more recently and it was barely enough to cause any sort of problem as you've shown above. I checked your account and found I am able to view your form submissions so I believe it is most likely the program or engine you are using possibly as it is working and I don't currently see any javascript errors on my end.

  • Profile Image

    Answered by AskRose on September 25, 2015 at 03:38 PM

    Thanks for the reply! We are using JavaFX's WebEngine to power our on in-house software. The link you've found do match what we're using. It very well may be an issue with engine itself, but I wanted to check all possible options. It seems that the root of the problem is the Utils variable not being defined in the call to:

     http://www.jotform.com/server.php?action=getLoggedInUser&callback=Utils.setUserInfo&includeUsage=1&v=3.3.9183&nocache=1443205591

    Javascript and PHP are by far not my strong suits, so I'm not sure what could be causing this. I was hoping there may be some ideas or suggestions. Thanks for all the help!

  • Profile Image

    Answered by Ben on September 25, 2015 at 03:59 PM

    My suggestion is to go to the same page directly over your browser or even try the same link:

    http://www.jotform.com/server.php?action=getLoggedInUser&callback=Utils.setUserInfo&includeUsage=1&v=3.3.9183&nocache=1443205591

    Now giving it a very quick look, it seems that they have the WebKit browser that is based on the open source code (Chromium) which they are giving you option on editing through the java code.

    I presume that the issue here is that the browser is not as quickly updated as the community accessible code is, which makes sense for them as they must have a solid product.

    I guess that it is likely that because of this, some code is not rendered properly which causes it to show up with errors for you.

  • Profile Image

    Answered by AskRose on September 25, 2015 at 09:43 PM

    Thanks for all the help! I think Ben had the right idea about not being up to the latest standards. It seems the issue is with the latest Java release 1.8 u60. Once I rolled back to 1.8 u51 everything worked. I'm not sure what is different between the two releases that could cause this issue. If I find a way to make things work in 1.8 u60 I'll post back.

  • Profile Image
    JotForm Support

    Answered by EltonCris on September 26, 2015 at 08:58 AM

    @AskRose 

    Thanks and glad you've managed to get it to work. Feel free to update us whenever you have questions or any information to share.

    Regards!

  • Profile Image

    Answered by rhain  on November 03, 2015 at 04:17 AM

    I got the same error,My app works fine with java 1.8.u50 ,while run with java 1.8.u60 catch a exception:ReferenceError: Can't find variable. @AskRose Did you soloved this problem with java 1.8 u60?

  • Profile Image
    JotForm Support

    Answered by mert on November 03, 2015 at 08:13 AM

    Hi,

    According to my research, this problem occurs from Webview incompatibility with the new java 1.8u60 release, so there will be no solution until they publish update.

    In this case, using the previous version of java will be the best solution.

     

    Thanks.

  • Profile Image

    Answered by rhain  on November 03, 2015 at 08:30 PM

    @mert, Thanks!

  • Profile Image
    JotForm Support

    Answered by mert on November 04, 2015 at 01:09 AM

    Hi again,

    @rhain, you are most welcome.

    If you need more information, please let us know.

     

    Thanks.