Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Shrinking text boxes??

Avatar

Level 3

I'm trying to create expanding text boxes but if the text doesn't fit the whole text box is there way to have the text box shrink to fit what was typed.  I have the shrink to fit (height) box checked but it's not working.  Am I forgetting something.  Thanks for any help you can give.

1 Accepted Solution

Avatar

Correct answer by
Level 9

Hi Catherine,

Do you want to shrink the TextField horizontally or vertically? If horizontally, then try the following.

Click on the Expand to fit checkbox under width.

In the exit event of the TextField write the following script.

this.maxW = "";

Thanks,

Bibhu.

View solution in original post

3 Replies

Avatar

Correct answer by
Level 9

Hi Catherine,

Do you want to shrink the TextField horizontally or vertically? If horizontally, then try the following.

Click on the Expand to fit checkbox under width.

In the exit event of the TextField write the following script.

this.maxW = "";

Thanks,

Bibhu.

Avatar

Level 3

I'm trying to get the height to shrink if needed.  Would it work the same way but use an H instead of an W

Avatar

Level 3

Okay that worked...cool thanks for your help