Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Expanding Text Field - to a point

Avatar

Level 2
Hi, I would like to specify "Expand To Fit" on a given field, so that it expands dynamically. But I would like it to stop expanding after a certain amount of text is added (10 lines), and at that point begin show the "+" sign bottom-right. I don't want to specify a Limit Length because there must not be a data limit, but visually it should stop dynamically expanding to show all after 10 lines, and start behaving like it has a fixed height at that point.



Is this possible?



Harry
0 Replies
I have this same problem. Originally I set it to 425 characters, however, with hard returns this can make the field 425 lines which is not desirable. Did you ever figure this out?

Avatar

Level 5
See if the following JS code helps in your case.....it is not exactly what you are asking but will not let the field expand though it allows multiple lines. So you have to set the initial(final) height.



you should use this code in 'enter' event of the each field that you wish to restrict the height.



var SOM = this.somExpression;

event.target.getField(SOM).doNotScroll = true;



Good Luck,