Skip 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.

Formatting a text field when it extends past the boundaries

Featured Replies

  • Newbies

Haven't been able to figure out if this is possible - if there is more text than fits within the boundaries of the text box on screen, I'd like to change the background color or give the user some other clue to click on the field and read everything.

Edited by Guest

Set up the field with a scroll bar?

Sorry - didn't realise you wanted conditional formatting.

Set up the field with conditional formatting so that above a certain number of words (the number that fit in your field on the layout) the text changes colour or style

Edited by Guest

Conditional Formatting requires that you exit the field for it to take place.

Since you have 10 Advance, use Script Triggers and a Script.

Use a MonoType Font such as Monaco, and count the number of characters that will fit within your Text Box, I used [color:blue]12 for my example

Your script would look like this;

Set Field [ YourField; Case (Length ( YourField ) ≥ [color:blue]12; TextColor ( YourField ; RGB ( 250 ; 0 ; 0 ) );

TextColor ( YourField ; RGB ( 0 ; 0 ; 0 ) )) ]

and Attach it to the Script Trigger [color:blue]OnObjectModify

Edited by Guest

Even with a monospaced font, Length() does not provide a reliable indication - you could have a very short text broken into many lines.

There's a demo posted by Daniele somewhere, that shows a question mark peeking behind a field when the text exceeds what is shown - but I believe showing the field contents in a web viewer might be a better solution, if no editing is required.

Hi

this is a way to go ( with 10 ).

N.B.: Does not work with dragged text.

hidden_text.zip

Right - I should have remembered this one too:

http://fmforums.com/forum/showtopic.php?tid/188854/post/302857/#302857

Hi daniele,

I think you nailed it, good job.

Lee

Thanks, Lee.

The script isn't perfect ( do not knows WHERE to go, to which position of the field )

EDIT: fixed

hidden_text.zip

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.