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.

Changing Font Color/Style With Script

Featured Replies

I have a number field. I'm trying to use a script to change the field font to Red and Bold if the value is under 220. Of course this wouldn't affect the actual data in the field, just the appearence of it. I know how to evaluate the value but not how to change the font color and style of the field. How would I do this?

Thanks!

Corey Martin

The easiest way to do this is to create a couple of calculation fields that are based on your current number field.

You place one on top of the other and have the calculation show or be blank based on your number field.

The attach file is a quick demo of this.

HTH

Lee

ChangeTextColor.fp5.zip

  • Author

Thanks for your reply and example. It does work, but there is one problem. Users have to be able to change the number. If I stacked two calculation fields on top of eachother to provide the effect of changing colors based on the number value, the user wouldn't be able to change either field. Is there a way around this?

Thanks,

Corey Martin

Just change the fill for the field "Red" to White, and then stack all three (i.e. align center /center)

This will make it do what you want.

Lee

cool.gif

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.