Jump to content

Automatically sizing text to fit


This topic is 7143 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I may have asked this before then misplaced it all:

How does one set up a field so that when text is entered, it automatically adjusts down, if necessary, to fit in the field box. For example, the description for a catalog item, optimally in a 12 pt. font, might be automatically stepped down to fit a longer description.

Thank you

Link to comment
Share on other sites

You cannot do this automatically.

You can manually adjust the text in the field for that record, or you could script a button to reduce the point size by [x] amount.

A good shortcut for adjusting font sizes as an FYI are;

CTRL (CMD on Mac) & A to select all the text in a selected field

SHIFT & CTRL (CMD on Mac) & , (comma) to decrease by one point

SHIFT & CTRL (CMD on Mac) & . (period) to increase by one point

Question. Why adjust the point size on a record by record basis?

Link to comment
Share on other sites

When making entries on a form that will be printed, sometimes the amount of text will not fit into the box and we need to maintain the exact overall architecture of the form. For this, it would be nice if the text could optionally autofit. I have seen this on a form I used but couldn't remember if it was a Filemaker, Acrobat, or Word form.

I didn't know the size changing shortcuts- that will help!

Thanks,

Bruce

Link to comment
Share on other sites

This may be more effort than it's worth, but:

Try using fixed-width fonts on all your fields. Set up some calculations:

Calc1 = If ( Length ( Field ) = 3 , Field , "" )

Calc2 = If ( Length ( Field ) = 4 , Field , "" )

Add each calc field to the layout, and set the font size so that exactly three characters fit in the field for Calc1, exactly 4 characters fit in the field for Calc2, ... Make sure they're all transparent, then stack one on top of another. If you set them all to not allow users to enter the field, you could put Field on top of them all, set it to not print, and you've got your form.

HTH.

Jerry

Link to comment
Share on other sites

This topic is 7143 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.