The custom widget does not work if the form is viewed on the mobile.

  • Profile Image
    on2air
    Asked on April 15, 2019 at 09:00 PM

    Hi, my custom widget I built is working fine on web, but on mobile I never receive the 'ready' message from JFCustomWidget.subscribe('ready'...)

     

    Any idea how to troubleshoot?  I'm using chrome remote debugger and can see that i never get inside the subscribe callback.

    Test form: https://form.jotform.com/90856628345164

  • Profile Image
    jherwin
    Answered on April 15, 2019 at 10:31 PM

    That's a nice widget :) 

    Anyway, I was able to replicate the issue on my mobile Phone. You should contact our API team about it and ask for advice or help.

    You can email them here: api@jotform.com


  • Profile Image
    on2air
    Answered on April 15, 2019 at 11:14 PM

    ok, i've emailed them.  I've emailed them many times before with no response.  Can you tell them to please read and respond to this one.

  • Profile Image
    jherwin
    Answered on April 15, 2019 at 11:25 PM

    I have created a ticket for this thread, it will be forwarded to the team in charge. But, I'm afraid, we still can not promise when it will be addressed.

    Thank you.


  • Profile Image
    on2air
    Answered on April 15, 2019 at 11:31 PM

    thank you.

  • Profile Image
    on2air
    Answered on April 16, 2019 at 12:51 PM

    OK, I figured out the issue.  For whatever reason, on mobile it doesn't like the check for jquery to be ready:


    $(document).ready( function(){

    .....

    })


    Works fine on web, but not mobile.  Once I removed the jquery wrapper it worked fine.   

  • Profile Image
    BJoanna
    Answered on April 16, 2019 at 02:03 PM

    Thank you for letting us know that you resolved the issue. I will close the ticket my colleague reported to our developers. 

    Feel free to contact us if you have any other issue or questions.