How to limit number of lines in a text box form

Hello.

I’m using LibreOffice Writer 5.2.4.2 to create a form. I am using text boxes and I can set some properties such as:

  • Help text.
  • Font
  • Max. text length.

So, I’ve set a maximum number of characters in the “Max. text length” property. But you can type a lot of short lines and I’d like to limit the number of lines, so all text typed can fit inside the text box.
I see I can set scrollbars but I want users not to type more text than you can see in the text box, as it would happen in an application form printed in paper.

So, do you know if it’s possible to limit the number of lines in a text box form?
Thank you very much,

M.Gen.

The problem still goes with 6.2