My form does not display properly on mobile when embedded on my site

  • Profile Image
    FreeMover
    Asked on May 22, 2015 at 09:28 PM
    The second question is, how do i get the form mobile. I mean, when i lookup my site on my mobile device, i just see the half of my form page. Can you tell me how i can fix this
  • Profile Image
    EltonCris
    Answered on May 22, 2015 at 09:39 PM

    The form responds properly on mobile as of checking. However, the container where the form is embedded prevents the from displaying its entirety due to some styles applied to it. This is why the bottom part of the form gets cut.

    I am referring to these styles, which can be found in your style.responsive.css style-sheet.

    .responsive .art-responsive-embed {

      position: relative;

      padding-bottom: 56.25%;

      height: 0;

    }

    And this one which affects the form height:

    .responsive .art-responsive-embed iframe, .responsive .art-responsive-embed object, .responsive .art-responsive-embed embed {

      position: absolute;

      top: 0;

      left: 0;

      width: 100%;

      height: 100%;

    }

     

    To fix it, re-embed your form using this codes.

    <style>.responsive .art-responsive-embed {

      padding-bottom: 10% !important;

      height: 100% !important;

    }</style>

    <iframe id="JotFormIFrame" onload="window.parent.scrollTo(0,0)" allowtransparency="true" src="https://secure.jotformeu.com/form/51366847864368?wmode=transparent" frameborder="0" style="width: 100%;height: 1786px;border: none;position: initial !important;" scrolling="no"></iframe>

    Hope this helps. Thanks!