You are viewing limited content. For full access, please sign in.

Question

Question

Dynamically adjust multi-line field height

asked on September 7, 2023

Does anyone know if it is possible to dynamically adjust the textarea height in the Modern Forms?

Like this article...

Dynamically adjust the field height of a multi-line field - Laserfiche Answers

The text is filled via a lookup, btw.

Jonathan

0 0

Answer

SELECTED ANSWER
replied on September 8, 2023

To get around this in the Modern Designer, we've been using Rich Text fields, which do actually autogrow by default. We've used these lines in CSS to make the Rich Text fields look like a Multi-line field:

 

.rtfHideToolbar  .note-toolbar {
  display:none; 
} 

.rtfHideToolbar  .note-editable {
  min-height: 100px !important; 
} 

With this code, you would enter "rtHideToolbar" as the CSS Class in the field (on the Advanced tab of the field properties).

Hope that helps!

1 0
replied on September 10, 2023

Thanks, Jennifer. 

That worked well :)

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.