Embedded form in Android

  • okibest
    Asked on February 5, 2016 at 3:19 AM

    Hi

    I am working in an Android app development where there is a form section. This form is been developing with jotform and it´s working properly before being embedded in my app. In order to do that, I use this code to be embedded:

    WebView myWebView = (WebView) findViewById(R.id.webView);
            myWebView.loadUrl("https://form.jotformeu.com/60323820663xxx");

     

    As I mention before the form is working fine in a web browser in PCs and even in mobile phones. When I try the form directly in my app after being embedded, the form is apparently working normally: the form is adjusted perfectly to the mobile screem resolution, all gaps can be filled in normally etc.

    However, when I press "send buttom", a new page with an illegible captcha field is open and it´s impossible to finish the process. I´ve attached a screeshot of this point.

     

    I appreciate a lot if you could clarify me a possible solution.

    Thanks in advance.

    Óscar

    Jotform Thread 765316 Screenshot
  • Boris
    Replied on February 5, 2016 at 6:40 AM

    Building of Android apps is a bit outside of our scope, but I believe we can help you get it fixed. ;)

    Our forms have automatic spam prevention, and if a browser has its JavaScript disabled, it will be prompted to fill out a captcha field. This prevents automatic spam bots from abusing our network.

    Please make sure that your WebView is configured to allow JavaScript, as JavaScript is mandatory for our forms to have all their functionality. That also explains why the form works everywhere else, except inside WebView where JavaScript is disabled by default:

    https://developer.android.com/guide/webapps/webview.html

    Please take a look at the above linked guide on how to enable JavaScript in your Android app, to make WebView act more like a real browser. Let us know if there is anything else we can help you with, and we will do our best to do so.

  • okibest
    Replied on February 5, 2016 at 8:47 AM

    Many Thanks for your answer. It´s now working properly!

    After your explaination , it wasn`t difficult to solve it. ;D

     

     

     

  • mert JotForm UI Developer
    Replied on February 5, 2016 at 9:48 AM

    In the name of my colleague, you are kindly welcome. Please, always feel free to ask your questions, we will be happy to help you.

     

    Regards.