Skip navigation
Srikanth V 15 posts
Apr 15, 2010
Currently Being Moderated

Number of lines in multiline text field

Feb 29, 2012 7:02 AM



Is there a way to find mumber of lines being typed by the user in multiline text field?

I tried to split the text in change event but did not help. Please provide a sample to solve this.




  • Currently Being Moderated
    Feb 29, 2012 7:19 AM   in reply to Srikanth V

    You can use the Exit event of the TextField to test..

    Only if the user uses enter key then a new line character is added to the field.

    If the user enters the text without using enter key to goto next line, then the field will wrap the text and without a new line character. In that case, it will be treated as a single line.


    var xx = TextField1.rawValue.split(/\r\n|\r|\n/);

    for(i=0;i<xx.length;i++){"" + xx[i]);




    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points