Dynamic Text Box size | Community
Skip to main content
February 28, 2005

Dynamic Text Box size

  • February 28, 2005
  • 33 replies
  • 26880 views
I would like to have a multi-line text box that starts as one line, then grows if the user adds multiple lines of text.



Currently I have the "allow multiple lines" field property checked, and the expand to fit height property checked. However, when I enter text in the preview I get a vertical scroll slider on the right as multiple lines are entered rather than an explanding text box. This verticle scroll slider certainly wouldn't be effective in a printed document.



-thanks
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

33 replies

March 18, 2005
Chris,



Here are the steps:



1) Open a new form and drop a text field on your form.

2) On the object inspector, click on the "field" tab.

3) Check the "Allow multiple lines" box and set your desired property values.

4) On the "layout" inspector, select "expand to fit" in the dimension that you want (i.e: width and/or height)

5) From the hierrachy, right click on your textfield and select "wrap in subform".

6) Select your new subform that just created. On the "Object" inspector, select "subform" tab.

7) Choose "flow content" for type. Select "top to bottom" for flow direction.

8 ) On the "layout" inspector, select "auto-fit" for both height and width.

9) Now, you can test your form by click on "PDF preview" tab.



Basically, above are the steps that you need. The idea is ,like David in previous post said, put your form field in the "flow content" subform.
March 17, 2005
I am very new to Adobe Designer. In fact, this is my first project. I have tried and tried, but I cannot make a text box expand and flow the document. I have messed with everything, including downloading the sample from this site. I just cannot figure out what I am missing. Can someone walk me through the process of creating a expanding text box from a blank, new page? All I need is the steps taken to create a single expanding text box, and hopefully I will see what I am missing.
February 28, 2005
Expand to fit works only when focus leaves the field (i.e. if you tab out of the field). During run-time, the scroll-bar will appear in the area you have designed at design-time. Once you leave the field, the field is dynamically resized. If you wish the rest of the document to reflow, you must define the text field within a subform which is in turn a child of a flow content subform.