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

  • WeedYoda
    Asked on June 2, 2017 at 4: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

     

    Jotform Thread 1162099 Screenshot
  • Kevin Support Team Lead
    Replied on June 2, 2017 at 7: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: 

    Input Table: Why field is displayed wider than the form?  Image 1 Screenshot 20

    Hope this helps. 

  • WeedYoda
    Replied on June 2, 2017 at 7: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.

     

  • liyam
    Replied on June 3, 2017 at 2: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.