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.

Set Color of Field's boundary or background

Featured Replies

I was looking through the scripts and functions and was surprised that I cannot set the color boundary or background of a field.

Is this correct?

You can change evrything else, like the size, type or style of a field.

Thanks for any tips or directions.

Using functions in field calculations or using scripts that use those functions, you can change the formatting (color, style, font, etc) of text in a field, but you can't change the size of a field nor its background or border color...directly.

You can use other fields to accomplish some of this though. You can create a calculated container field that when certain conditions are met, return a picture (which could be 1 pixel of a color). Place that field behind the field who's background you want to colorize, and voila!

  • Author

David, thanks!

I had thought of something similar but your mental nudge gave me an idea. As you probably guessed, the fields that I am asking about are number based and cannot have their text colored.

But I like the idea of a field as 'indicator'.

I don't believe the fields being of type number should prevent you from using Text Formatting functions. You can use Auto Enter Calculations if a field type of calculation is impractical.

For instance in the Auto Enter options in the Field Definitions dialg..

NumberField = TextColor( NumberFIeld ; RGB ( 255;0;0))

Select the option to Alway Replace and you've got Red numbers, If you want to apply a test...

NumberField =

Case(

NumberField > 100; TextColor( NumberFIeld ; RGB ( 255;0;0));

TextColorRemove(NumberFIeld)

)

You've got red numbers when the value is 101+, non-colored numbers otherwise.

  • 2 weeks later...

Is there a font that has a transparent background? I have a screen which layers buttons over some text, but it doesnt work with IWP because the button layer is transparent. My idea was to make the button layer have a fill color and make the text layer have transparent background as a workaround. Is there a font in FMP that has a transparent background? OR is there a way to dynamically set the text on a button with a script?

TIA,

Barb

Edited by Guest

Create an account or sign in to comment

Important Information

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

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.