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

    Input Table: Why field is displayed wider than the form?

    Asked by WeedYoda on June 02, 2017 at 04:55 PM

    No matter how wide I make this form - -nor if I use CSS - - nor if I make these fields' columns smaller - these two fields keep bleeding over when embedding in wordpress

    please help

    thank you

    adam

     

    NOTE: This is NOT an iFrame - I can ONLY embed in wordpress - javascript and iFrames will not work - so I can NOT change the width in wordpress as it is simply a URL embedded

     

    thx again

     

    Page URL:
    https://weedyoda.com/diagnostic/

    Screenshot
  • Profile Image
    JotForm Support

    Answered by Kevin_G on June 02, 2017 at 07:13 PM

    This happens since the Input Table is created using an HTML table, tables are not mobile friendly and it is a bit hard to change their width value dynamically as you do with other elements such as email fields, name field, phone number or address field. Since the element where you're embedding your form it is not too wider, the Input Table displays like that. 

    I would suggest you to inject the following code to your form, this way even if the Input Table is wider than the form, it will not distort the layout: 

    [data-type="control_matrix"] .form-input-wide{

      overflow-x: auto;

    }

    Result: 

    Hope this helps. 

  • Profile Image

    Answered by WeedYoda on June 02, 2017 at 07:36 PM

    Hi K - Thanks for the reply and thanks for the suggestion. Unfortunately it is not happening only on mobile, it happens on both mobile and laptops. Anyway, I tried your code and that did not fix it.

     

    The strange thing is it looks perfect when I just open it direct from Jotform - -embedding in wordpress is forcing an invisible iFrame that I cant edit.....

    Thanks for trying.

     

  • Profile Image
    JotForm Support

    Answered by liyam on June 03, 2017 at 02:18 AM

    Hello,

    The change may not reflect on your wordpress site because of your wordpress cache.

    If you are using a wordpress CMS, you will need to clear the cache in order for the changes to reflect. You can check this guide from another website to know how to clear your Wordpress cache: http://www.wpbeginner.com/beginners-guide/how-to-clear-your-cache-in-wordpress/

    If you have questions, please let us know.

    Thanks.