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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Shrink-to-Fit fields

Avatar

Not applicable
Hi, is there a way to make text fields "shrink-to-fit" so that if a name or title is too long it will automatically make the words fit? Thanks



Shane C
12 Replies

Avatar

Not applicable
Hello,

I used a little field whit expand to fit option... 😉



bye,

Roberto.

Avatar

Not applicable
Hi, I'm trying to do the opposite which is shrink to fit so that the layout can remain the same...any ideas?

Avatar

Level 5
Set Font Size of the field to Zero, and the font will continue to decrease in size as more text is entered into a field.



Mark

Avatar

Not applicable
Hello. I'm trying to do the same thing Shane College was, but I can't quite figure out how to reduce the font size to zero. The text formatting toolbar will not allow for this. Is this a scripting function?



Many thanks.

Avatar

Level 5
CM:

Assuming you are using LiveCycle Designer;

From the menu bar, window-font (Shift+F4)

Highlight the font size value.

overtype with zero.

click outside the field.

should retain the zero value.



Good Luck

Avatar

Not applicable
Hi Mark,



Okay did that, but the font size reverts to the non-zero numerical value. Are there specific fonts that will not allow zero? Or is there another setting on my system that is preventing this from happening?



Thanks for your help.



CM

Avatar

Level 4
Hi CM,



You can cheat by going into the XML Source editor and setting it to 0 there.



View > XML Source



Then search for your text / field (Ctrl + F) and there will be a line with something similar to:



<**THIS WON'T BE HERE**font size="9pt" typeface="Arial"/>



Alternatively, if you have the field selected it goes into the editor at the start of the field in the code so you should be able to just scroll down a little way.



Regards,



Tom

Avatar

Not applicable
Hi, I am trying to do the same as Shane College, but instead of making the text "shrink to fit" and keeping the layout the same, I am trying to make the text box "expand to fit". In other words, I would like the text box to dynamically grow as the amount of text increases.



Can I only do this if the form is "dynamic" (rather than "static")? I tried to create a "dynamic" form but to no avail!

Avatar

Level 10
Yes it must be dynamic ... on the layout tab you have to click on expand to fit.

Avatar

Not applicable
Hi Paul,

I've read through some of the forums today and I noticed you've helped out a lot of people (including myself). Just want to say thanks for taking the time to answer our frustrating questions. You are better than any adobe technical support (who charge $39!!).



Best,

Leah

Avatar

Not applicable
Hi Thomas,



Okay, I was forced to go into the XML code, but your suggestion worked. There was no font size set at all for these, so when I input the size (as zero), the fields functioned as desired.



Thanks for the info.



CM