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
BedrockMission!

Learn more

View all

Sign in to view all badges

Expanding text fields to fit text

John_Bruins
Level 1
Level 1

I have a customer who would like to be able to put large amounts of text into a text field and have it all print. The amount of text can vary, so he would like to have a box where he can enter the text and have the box size adjust to the amount of text entered, even to the point of adding extra pages if necessary. I have tried using the Expand to Fit option, but all that seems to do it allow the text to scroll while the box stays the same size. Is this something that is even possible? If so, how? Thanks.

6 Replies
Magus069
Level 10
Level 10

Hi there,

Usually the "Expand to Fit" option under the Height property of the object is what you need.

You also would have to make sure that your text field is "Allow Multiple Lines" & Field Format set to "Rich Text"

Parents objects (subforms & page) are "Allow Page Breaks Within Content" and the Content set to "Flowed"

instruct.png

And once those settings are set make sure that your text field is Expand to Fit on the Height property!

frmInstruct.png

Hope this help!

John_Bruins
Level 1
Level 1

Thanks for the help, Magus. I did what you suggested, but it still is not working the way I would like. I suppose my user will just have to learn to write more concisely or use additional sheets. If there is something else I should try, let me know. If not, I appreciate the attempt.

Magus069
Level 10
Level 10

Hi there again,

have a look at this form, is this what you are trying to do?

text.pdf - Google Drive

mouslander
Level 7
Level 7

Can you explain how it is not working? This is a very do-able thing with LCD

undergroundfun
Level 1
Level 1

How are you getting to those dialogs?  I see the property dialog on the text field, but there's not nearly that many options.  No layout tab for instance.

Magus069
Level 10
Level 10

All the options as layout tab, object tab and more are all under "Window" in the Application Menu bar along with File menu.

By clicking once on each of them under "Window" menu you can make them appear and then attach them within LiveCycle Designer along the sides, top or bottom of the application.

Hope this help