Allow Cell to have Multiple Lines in Matrix Table

  • ferranma
    Asked on February 9, 2015 at 8:18 AM

    Hi,

     

    I want to create a table like this:

     

     

    want to input multiple text lines in a cell. and auto adjust cell with the text.

     

    Sombody can do it for me?

     

    i've no idea about how can i do it.

     

    Thanks

  • Charlie
    Replied on February 9, 2015 at 11:33 AM

    Hi,

    Upon checking the form you have, I see that you are using the Spreadsheet widget, is that correct? But you are asking about the Matrix field? I believe it is not possible to add multiple lines into a cell on the Matrix field. BUT, I see that you have some working progress on the Spreadsheet widget. 

    I've modified the custom CSS code you have and use this instead:

    .A input { width: 150px; min-height: 50px; word-break : break-word; }

    .B input { width: 150px; min-height: 50px; word-break : break-word; }

    .C input { width: 150px; min-height: 50px; word-break : break-word;}

    .D input { width: 150px; min-height: 50px; word-break : break-word;}

    td, th {

    word-break : break-word;

    }

     

    See if that would work with you, I've cloned your form and you can check the demo change here: http://form.jotformpro.com/form/50394252201949?.

    I hope this helps.

    Thank you.

  • ferranma
    Replied on February 9, 2015 at 3:16 PM

    I'm sorry, but with your demo form i can't write 2 or more lines of text in a cell... 

     

    I've tryed to copy your css to the wiget css and don't work...

     

    also, how can i change the name of the cel "A"  with the text of the cell A1

    "B" "b1"

    "C" "c1"

    "d"  "d1"

    is it possible?

     

    Sorry, beacause i don't know so much about jot form and less about css

     

     

  • Ben
    Replied on February 9, 2015 at 4:41 PM

    Yes, that is correct, you can not write more than one line, because the browser itself would not allow it. The input field that is used in the spreadsheet is not intended to be written anything that would go in multiple lines (for which textarea is).

    What I think would be best for you is the Configurable List widget.

    It will allow you to add the headers as you want them and to add the type of the fields that you need on the jotform - it does not look like the spreadsheet though.

    You can see more about it here: How to Set Up the Configurable List Widget

    Now in regards to your question about the column headers in the spreadsheet widget, I have moved that to a new thread here: http://www.jotform.com/answers/512695 where we will be responding to shortly and show you how you can change the column headers.