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

  • on2air
    Asked on April 15, 2019 at 9: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

  • jherwin
    Replied 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


  • on2air
    Replied 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.

  • jherwin
    Replied 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.


  • on2air
    Replied on April 15, 2019 at 11:31 PM

    thank you.

  • on2air
    Replied 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.   

  • BJoanna
    Replied on April 16, 2019 at 2: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.