Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

Is it possible to apply a calculation to a text field that will decrease the font size automatically should there be too much text to display on one line so that it fits? I could decrease the font size for the field in question across the piece but it happens very rarely and I'm pushed already for layout space with regard to increasing the field width.

Posted

You can apply a conditional formatting calculation to the field on the layout based on a calculation something like this:

 

Length ( Self ) > 100 /* or some other number */

 

Then the format to use when this calculation result is True (1) can be whatever you specify under "More Formatting..." towards the bottom-right of the conditional formatting dialog.

Posted

Not sure why you can't make the field bigger, but you could increase the size of field so it will to accept the max amount of text, and then have the field slide up to eliminate white space when printing, or in preview mode.

 

Or, you can use a vertical scroll bar

  • Like 1
Posted

You can apply a conditional formatting calculation to the field on the layout based on a calculation something like this:

 

Length ( Self ) > 100 /* or some other number */

 

Then the format to use when this calculation result is True (1) can be whatever you specify under "More Formatting..." towards the bottom-right of the conditional formatting dialog.

 

I think I was looking at this in too much detail. I was expecting some kind of calculation that automatically worked out how many characters fit in the field and then an appropriate automatic font resize. Never considered conditional formatting but your solution works, thank you.

Not sure why you can't make the field bigger, but you could increase the size of field so it will to accept the max amount of text, and then have the field slide up to eliminate white space when printing, or in preview mode.

 

Or, you can use a vertical scroll bar

 

I'm struggling for room width ways, but yes I could have increased the field depth.

Posted

I think I was looking at this in too much detail. I was expecting some kind of calculation that automatically worked out how many characters fit in the field and then an appropriate automatic font resize. Never considered conditional formatting but your solution works, thank you.

 

That's certainly possible with the TextSize ( text ; fontSize ) function, but I think conditional formatting will ultimately serve you better. You can create several steps of fonts size by creating multiple conditional formats for different threshold text lengths. Just make sure the conditions are listed in ascending order of text length (and thus descending order of font size) — the conditional formats evaluate in order, so later conditions can override earlier ones.

  • 5 months later...
  • Newbies
Posted

Not sure why you can't make the field bigger, but you could increase the size of field so it will to accept the max amount of text, and then have the field slide up to eliminate white space when printing, or in preview mode.

 

Or, you can use a vertical scroll bar

Hi Lee, I'm searching for the same answer… how to reduce text size for longer entries… and I see you have twice asked why this would need to be done.

In my case it's for printing a shipping label that can't be enlarged. Large text reads easier but sometimes you need the exception. I was using many levels of Conditional formatting (looking for a better way) but thats a pain since Text size in not on the first level of selection in the dialogue window (sadly this didn't change in 13) so if you have to modify it or need to do it to many different size fields it's cumbersome. FYI   ; )  and thanks for your many contributions.

Posted

Are you using the labels provided in FileMaker? i.e. did you create a Printing layout for labels?

This topic is 4057 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.