Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Field text exceeds fields' display boundaries


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

Recommended Posts

Posted

Hi,

I'm trying to find out if there is a way to know hen the text entered to a field exceeds its boundaries.

I'm not talking about the number of characters but the actual (pixel?) size of the text.

For example If my field is 160 x 30 pixels (which is about 2 rows), and the text from the first row continues on the second row - how can I detect that?

The field is actually displaying two rows, while it is actually one row and one value...

To the curious ones:

I'm doing this so I can display to the user that there is more data in the field then what they see

...and no..we cannot use the vertical scroll bar :)

tnx

Xtrim

Posted

AFAIK you can only estimate, and it will never be 100% reliable. Do you want to show the user the text that's not visible? If so, try setting the tooltip as Self .

Posted

Very cool!

It's weird, though: I tried to use a conditionally formatted text object instead of a triggered script + field, and the same formula does nothing. The data viewer shows the height as the height of the field box on the layout, regardless of the amount of text in it.

That's actually what I would have expected. But aha, I see now that when I click in the field and refresh the data viewer, it does use the height of the field contents. So conditional formatting isn't going to work, we have to store the result while the field is active, as you've done in your example.

Again, nice job, thanks for sharing.

  • 5 months later...

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