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.

Script to change font color?

Featured Replies

In a layout I have a series of fields with text data. Is there a simple way to do a script in FM that I can click on one of the fields highlighting the entire text then hit a button on the layout attached to a script ( or hit a fkey on computer) that will change the text color in the field I had just highlighted?

A hurried thought: Somewhere out there there's a FM demo that does something like this with styled text, but it's a "heavy" setup. My question would be what platform you're on. For OS X, there's a great utility, MenuMaster, that assigns keyboard shortcuts, on the fly, to any menu item, including the swatches in the font color submenu. The advantage is, once you set it up, the hot key runs on that machine across all your dbs, no further futzing required. (Also, if you're on a Mac, then AppleScript might be able to capture the text and apply a style.)

If you just want to DISPLAY the info in color on your layout (and you're not attached to changing the style within the original field), then all the posts about conditional formatting would be useful: essentially you overlay multiple calc versions of your text field over the original field on the layout, each calc field with a transparent background, and each calc version responding to some Case function to decide whether to mimic the original field. You could use a button on the layout to set that parameter... This works only if, as you indicate, it's whole fields at once, rather than just partial field contents. And of course calculated mimic fields would have to be separately set up for each field on which you're interested in doing this.

Cheers...

  • Author

Thanks MenuMaster looks like it will do what I need. I also downloaded two of the demos that I might be able to modify to even be a smoother solution. App the help

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.