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

    embedded form is not responsive on iOS safari mobile browser

    Asked by sankalpo on October 30, 2015 at 08:56 AM

    i have built a form, which looks great on iOS safari mobile when viewed at the direct link:

    https://form.jotform.me/52987431587470?

    but when i embed this in an iframe on my site, it is no longer responsive. see:

    http://www.streetdogs.io/

     

    i have done this iframe embed using strikingly.com, but i have also tested this with squarespace, and have already tried using many css implementations on both the strikingly and from within the custom css injection on jotform - nothing has worked

     

    i also asked the strikingly support to help, and they tried, but ultimately said:

     

    "the responsive design inside an iframe is not something we can control, because it's entirely provided by the source of the iframe. To really make sure it's perfect, you'll have to contact the people at Jotform and get them to make certain fields or the map fit on smaller screens!"

     

    would very much appreciate any help with this!

     

    sg

    Mobile mobile browser ios not responsive
  • Profile Image

    Answered by sankalpo on October 30, 2015 at 08:59 AM

    here are screenshots of the responsive jotform & the nonresponsive embedded iframe

     

     

  • Profile Image
    JotForm Support

    Answered by david on October 30, 2015 at 01:02 PM

    Hi,

    I checked your page on mobile and it does appear to be mobile responsive:

    Is it still not showing properly on your end?  I checked on both IOS and Android, both showed the form properly.

  • Profile Image

    Answered by sankalpo on October 30, 2015 at 03:05 PM

    thank you for checking this out. unfortunately from my end - on two different iphones (5c & 5) - the form on streetdogs.io does not show properly (it looks like what i posted in the 2nd image in my 2nd post above). and this is happening even though the form on the original jotform page is rendering fully responsive

    i'm wondering if there is something in my version of iOS safari that is "adjusting" the view from responsive to not (perhaps based on the width of some field in the form)? and whether that could be blocked to force it to stay responsive like the original jotform

    i say this also because i also tried simply creating a DNS mask - putting a whole page frame that just shows the original jotform...and even that is showing in the nonresponsive way!

    thanks again for your thoughts on this. let me know what you think?

     

     

  • Profile Image
    JotForm Support

    Answered by david on October 30, 2015 at 04:14 PM

    You can try adding mobile responsive CSS to the form:

    http://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes

    @media only screen

    and (min-device-width : 320px)

    and (max-device-width : 480px) {

    .form-all {

    width: 320px !important;

    }

    .form-line {

    padding-top: 0px !important;

    padding-bottom: 0px !important;

    padding-left: 3px !important;

    }

    img.form-image {

    max-width: 100% !important;

    height: auto !important;

    }

    #id_1.form-line {

    padding-left: 36px !important;

    padding-right: 36px !important;

    }

    }

    And adjusting the the min/max widths to see if it will include the width of your phone.  I tried on a few different devices though and each one the embedded form looked to be mobile responsive.