Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Are There Expandable Text Fields?

Avatar

Level 2

[Thread Edited By Adobe]

/*Don’t forget to meet and greet your fellow peers virtually by telling them about yourself here

Go ahead and to it now: https://adobe.ly/3eDnB4v */

 

Actual Question:

Okay,  am new to Acrobat and LiveCycle.  I have gone through about 9 hours of videos and still can not find an answer to what I know I should be able to do.  Is there a way on a form to create a text field which has the ability to expand its size versus creating a scroll bar so when you print the form it is not chopped off and missing?      This is a 2 page form so a text box has the possibiltiy it could split between 2 pages.

1 Accepted Solution

Avatar

Correct answer by
Level 6

The forum software runs a virus scan on uploaded files before they're released to the public.  Until the scan is run the attachment will show as Queued.  Unfortunately I don't know how often the scanner runs, but I've seen attachments queued for a day or two, so keep checking back every once in a while.  Once the queued label is gone you can download the file.

View solution in original post

80 Replies

Avatar

Level 6

Absolutely.  TextField objects can expand dynamically.  There are a few things that you need to do:

1. The TextField object should be contained in a subform that is set to Content: Flowed.  This isn't technically necessary, but if you have anything below the expanding text box and the subform is set to Positioned, the text will expand and overlay what's below.

2. On the Field tab of the text field's Object property tab, check the Allow Multiple Lines checkbox

3. On the Layout tab, check the Expand To Fit checkbox under Y:/Height

4. Set the PDF Render Format under Form Properties/Defaults to Dynamic XML Form.  If you're previewing in Designer, don't forget to set the preview to Dynamic too.

When you type in the text field in Reader, it will not immediately expand (and will show a scrollbar).  This is a limitation feature of Reader.  After you tab or click off of the field, Reader will redraw the form and the textbox will expand properly.

I've attached a simple example form for you.

Avatar

Level 2

Hi Kevin,

I sent an emial from Outlook before I went to Adobe Forums.  I tried opening the file on the reply you posted but nothing happens and the message QUEUED appears at the end of the file information.  Again this is my first time using Live Cycle andthe forums am I missing something simple?

Avatar

Correct answer by
Level 6

The forum software runs a virus scan on uploaded files before they're released to the public.  Until the scan is run the attachment will show as Queued.  Unfortunately I don't know how often the scanner runs, but I've seen attachments queued for a day or two, so keep checking back every once in a while.  Once the queued label is gone you can download the file.

Avatar

Level 1

Kevin,

I have tried following your directions, even following your sample, and have failed.  I could get the 2 fields (Details of Incident & Plan for Improvement) to expand and not overlap on the rest of the document, but I loose the layout.  What am I doing wrong?  Please help.

text expands formatting lost.pdf - is messed up, it has the expandable fields with flowing text, none of the original layout.

CAN.pfd - is how the form should be laid out

Thanks in advance for any assistance you can provide.

Avatar

Level 6

No problem, I'll take a look as soon as the attached files are available.  I have a feeling that you just need a little more understanding of how flow layout works.

Avatar

Level 1

Genuinely appreciate the help.  I hate being a newbie, as I am used to being the tech-savvy one in the department.  Normally we build forms in Word, but have run into some problems… turns out not everyone has the same version of Word.  We all have the same version of Adobe!  So I thought, I let me give it a crack.  Now, I am bound and determined to get it right.  Thank goodness for forums and quick tips clips and videos.

Thanks again for being so helpful.

~N

Avatar

Level 6

OK, this is not so bad.  You're 90% there.  You just have to get a better handle on how flowed content layout works.  It's a concept that most people have trouble understanding when they first start working with forms.  Once you get used to it and you are making a lot of dynamic forms, you'll always just lay them out with flowed content.  I rarely use positioned content.

Flowed content is very simple, and if you've ever done any web page work the concept is pretty much the same as the way HTML pages are layed out.  The first object in the hierarchy is placed at the top left corner of the subform's content area.  Then, the next object is placed immediately after the first, then then next one after that, etc.  There is no spacing between objects; the next one is placed abutting the boundaries of the previous one.

There is another setting that controls the layout; it's called Flow Direction and it's underneath the Content box on the Subform tab.  There are two settings: "Top to Bottom", which means that each object is placed "underneath" the previous object, not next to it on a line. This means that objects are always stacked vertically down the page.  The other, "Western Text" means that the rendering engine will try to place the next object "next" to the preceding one; i.e. across the page horizontally.  If the width of the new object is small enough that it will fit within the horizontal margins of the content area, it will be placed next to the previous one. If it's too wide, it will be place on the next line, below the previous object and against the left margin.  Please note that I use the word "line" a little loosely, it's not a line of text per se but you get the idea.

The big issue with flowed layout is that there's no "spacing" between objects, since everything is placed immediately against the boundaries of the previous object.  So, you have to include spacing in your objects to separate them.  This is usually done by using the margin settings on the object's Layout tab.  It sets the amount of extra space on each of the sides that is added when the object is layed out.

You can see how flowed layout makes dynamic forms work; if you type into a text box and it expands downward, the rendering engine will re-layout the page and draw the expanded box, then draw the next object below it.  No overlap.

So, in your case here's what you need to do, based on your sample form:

1. Set the Flow Direction of the subform that holds the expandable fields to "Western Text".  You'll see that the Type/Date/Level objects will now flow next to each other since they all fit on one line.  If you have anything that is now sitting next to a previous object but shouldn't, make the width of the previous object wider so that the next one won't fit on the same line, and it will be pushed down below.

2. Add spacing between objects.  For example, select the "Details of Incident" text field and set the Bottom margin on the Layout tab to ".2".  You'll see that no matter what you type in there, the layout engine will always add .2 inches of space below the text field, which will separate it from the text box below.  You can use the left/right margins to separate things that flow horizontally on the same line without making the actual data entry area larger by widening the entire object.

Something else that will make your life easier is to break up your document into logical sections using subforms, and getting the layout inside each one correct.  In fact things like the Type/Date/Level line can be made into a subform containing one set, and the subform repeated 3 times.  The same spacing idea works between subforms; set the margins on the subform's layout tab to separate it from the next one.

Hope the above is helpful.  See how close you can get to the original form, and let me know if you need additional help.

Avatar

Level 4

Hi Guys,

Okay I have come to the conclusion that I am just a total idiot.  I have followed the instructions given and still I cannot get the text box to expand.  I have a feeling I am setting up my subforms incorrectly.  I have even tried a very (and I mean very) basic form so that I can try to get the expanding text box to work but it still doesn't.  I don't know what I am doing wrong. When I go to type in the box it doesn't expand I get the little plus sign in the corner.  Please help    I have attached my simple form for you to look at and let me know what I am doing wrong.  Also if I have already started a form can I change the fields to have the text boxes expand or do I have to start all over.  Any help would be greatly appreciated.

Thanks!

Jodi

Avatar

Level 1

The form that you attached was saved as a Static PDF, but I think that you need to save it as a Dynamic XML Form to get the field to dynamically expand the way that you want it to.

When I previewed your form in LiveCycle Designer the plus sign was still appearing on the text box when I tabbed out of the field, but when I saved your form as a Dynamic XML Form then text box expanded to show all the text that I had entered.  See mytest2.pdf which I have attached here. Are these the results that you wanted?

Kate

Avatar

Level 4

Kate you rock! That is what I want. Okay now how do I save it as a dynamic PDF? I thought I did when I changed the form properties under File>form Properties>defaults and also Preview? Is that not where I do this?

Thanks!

Jodi

Avatar

Former Community Member

No that is only for Preview mode. When you do a file SaveAs you can choose to save as  a dynamic PDF in the Save As Type dropdown.

Paul

Avatar

Level 1

Hi - I'm having a similar issue with the above.  I have managed to get 3/4 of my form to work with the expandable fields expanding on the 2nd page, however, I have other fields below the expandable fields that should be directly below the expandable fields.  I have them on the second page and cannot move them directly below the expandable fields, it moves them to the 3rd page?

What I'm trying to do, is have signature fields and date fields immediately below the expandable fields but have these fields move to the 2nd page when needed.  I'm attaching the form so that you can see my issue.  I must have changed something on my first page that will not allow me to add any more fields.

Hoping that someone can help me with this.  In the mean time, it's the end of the day, and will get back at it tomorrow, with hopefully some good help from the forum.

Avatar

Former Community Member

I think this is what you want. I moved the page numbering to the master page. Then I named the subform with the signatures in it to Signatures and moved it under the root subform (so it is not a page on its own). I then modified the width to fit the rest of the page and allowed the height to expand as required.

See my attached sample.

Paul

Avatar

Level 1

Paul, thank you so much for fixing this for me - this is just awesome.  Can you let me know what I had done wrong that I could not move the signature fields to the first page.  Need to know so that I don't make the same mistake again as I will need to create more of these forms.

Again, Thank You!!

Avatar

Former Community Member

I indicated what I did in my previous psot ....thats it!

The big issue was getting that signature block off of a page subform (the page subform was set as positioned and was 8.5 x 11 inches. By taking it out of a page subform and putting it under the same page I was able to reduce its size to fit the size of all fields in the subform.

Make sense?

paul

Avatar

Level 1

Thanks Paul, that is great. Really appreciated your help, as I had been working on this for a couple of hours and was getting a little frustrated.

Nicole Henry

Executive Assistant

Tel: 705-267-8100 ext 2287

Fax: 705-360-2909 - (Note: Ignore the voice mail and the fax will be forwarded once the fax signal is detected.)

E-Mail: nhenry@cmhact.ca

Avatar

Level 1

Hi all,

I'm new to LiveCycle and am having trouble getting the text fields to push following content when they expand... I've attached a copy of the file... Now sure if I'm being clear or not....

Avatar

Level 3

Cornyo,

I made a quick example based off the form you attached.  I am assuming that my example is one of the spots you would like the ability for content to expand.

Avatar

Level 1

Hi JT01,

That is exactly what I need... how do I go about setting up?  I need it in a few fields.  Is it possible to add bullets to field (i.e. automatically add a bullet every time you hit enter)?

Cornyo