Count lines in a textbox

Discussion created by ianselmo on Feb 9, 2015
Latest reply on Aug 4, 2015 by user14047

I need to find a way to count the lines in a text box. I want to validate that the maximum lines allowed is not exceed because I transfer the information to a PDF files and i need to validate the maximum or else i cannot see all the information. The number of caracters is not good for me because If they press 'Enter' to add lines it doesn't work