Note that there are some explanatory texts on larger screens.

plurals
  1. PODisplaying Text in multiline [ Multiline textbox] using Javascript
    text
    copied!<p><img src="https://i.stack.imgur.com/XB2dc.png" alt="enter image description here">I tried my best to get this resolved but end up with negative results.</p> <p>I have text box, and the length is 1300 chars. But I want that to display in multilines. I tried a lot of things and I got horizontal scrollbar but didn't get the vertical scroll bar. The string is displaying in a single line which I don't want. I want that to break at end of the textbox and continue displaying on the next line.</p> <pre><code>var tmpArray = document.forms['form1'].elements["fa_col_value"]; var mainCdo = g_CdoMgr.getCdoByName("TempFaObjectCdo"); var flexCdoCol = mainCdo.getCdoColByName("fa"); if(flexCdoCol.get(i).getField("label") == "Additional Notes" ) { tmpArray[i-j].style.width="350"; tmpArray[i-j].style.height="100"; } </code></pre> <p>In the above code, I tried to change the height and width but displaying is what bothers me. I want this to be displayed over multiple lines. This is generic for all the elements in that page.</p> <pre><code>//tmpArray[i-j].style.overflow="auto"; </code></pre> <p>When using this I'm getting a horizontal scroll bar also [which is not useful for me]. but when I tried vertical options that is not working at all.</p> <p>I tried <code>break-all</code>/<code>break-word</code>, but no use.</p> <p><img src="https://i.stack.imgur.com/1GAx6.png" alt="Image1"></p> <p>The image shows the data. Red represents the part which I need to change, and green is the string that need to be displayed in multiline.</p> <p><img src="https://i.stack.imgur.com/p2A6J.png" alt="Image2"></p> <p>Here the string is displaying in single line. That needs to be rendered vertically. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload