Hi,
I use solutionModel to create a form. There is a comment field in this form which was declared by using
field = form.newTextArea("remark",3, 31, 200, 100);
As the content in this field could be one line or multiple lines, I’d like the field height to be able to change dynamically so that when there is just one line in this field, it doesn’t have to be that high.
Can Servoy do this?
Not that I know. I supposed the form will be displayed in Record View, I usually create the field big enough for the average data that it should display and set the vertical scrollbar to “show only when needed”. Sorry but this is the best hint I can give you.
happytigger:
…I’d like the field height to be able to change dynamically so that when there is just one line in this field, it doesn’t have to be that high.
Can Servoy do this?
Our webclient solution phone log does what you describe when it prints to PDF, per attached. Date is a text field. Log is a text_area field. The list is table view with a record height of one line. The pdf plugin collapses the rows to fit.