Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Field text exceeds fields' display boundaries

Featured Replies

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

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 .

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

try this one...

FieldHeight.zip

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...
  • Author

great trick :)

tnx

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.