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

  • Profile Image
    WeedYoda
    Asked 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

     

  • Profile Image
    Kevin_G
    Answered 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
    WeedYoda
    Answered 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
    liyam
    Answered 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.