These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Textfield size

Ray
Registered: Mar 6 2007
Posts: 48

How can I define a textfield font size property to auto. The goal is to have the text shrink if needed. Thx

LiveCycle Designer 8

gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4308
You can try "0" that is used in Acrobat JavaScript, or set a field's text size to "Auto" and then create an alert message to display the field's text font size.

George Kaiser

Ray
Registered: Mar 6 2007
Posts: 48
Thank you. But LCD has no 'auto' selection for the font size. I guess what you are referring to is a feature of Acrobat, not the LiveCycle Designer.
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4308
Well, did you try the zero font size any way?

But there maybe a better way [url=http://forms.stefcameron.com/2006/10/31/expanding-to-fit-the-entire-value/]Expanding to Fit the Entire Value[/url]. This article discusses setting the font size to zero and setting the fields minimum (minW) and maximum (maxW) widths.

George Kaiser

Ray
Registered: Mar 6 2007
Posts: 48
The "0" size does not work as it jumps to the default size 10. The other solution does not work either as the textfield overlaps with the adjacent field when the input has more characters.

I have also posted another question on this forum with no reply so far. The other question is how in LiveCycle Designer the default font type and size can be changed. It is easy with Acrobat, but with LCD I have not been able to figure it out yet.

Thank you
lkassuba
ExpertTeam
Registered: Jun 28 2007
Posts: 3636
There is a suggestion for how to change the default font type in Designer in the following post:
http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=12870

Also, there is a tip on how to create the auto font size in LiveCycle in the following blog at:
http://blogs.adobe.com/acrobatineducation/2006/03/

Lori Kassuba is an AUC Expert and Community Manager for AcrobatUsers.com.

Hammari
Registered: Mar 25 2008
Posts: 16
I have found the above replys very helpful.

Is there any way to set a maximum size while doing this? Because of the varying sizes of my text fields, some end up with a 6pt font while others end up with a 24pt font. I would like to set it at 8pt but make it smaller if necessary.
Paulette1
Registered: Jan 12 2009
Posts: 5
I have set my text fields to have a font size of 0 so the font shrinks as the end-user types in the field. Is there a way to change it so that there is a minimum size the font can shrink? Sometimes the print is so small it's difficult to read.