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.

Changing Field Style/Font Color Based on Value

Featured Replies

  • Newbies

I am attempting to create a layout/report where a record color is different based on the value of another field. For example, I want "Last Name" to be RED if the value of Field "Voted" is Y and BLUE if the value of Field "Voted" is "N". Is it possible?

Need help ASAP.

Thanks

Hi DDan! Welcome to the Forum! smile.gif

Create a calculation called LastNameVoteY (text) with: Case(Voted = "Y", LastNameField). Place your standard LastName field on your layout, format it as you want it to finally appear on your report but make its text format blue. Ctrl-C to copy it, then Ctrl-N to paste another copy of it beside your real LastName field.

Double-click the copied LastName to bring up Specify Field and select your LastNameVoteY calc. Change its text color red and change it's fill pattern to transparent (right-click, fill pattern and select top left box). Turn off 'Allow Entry' into the calc field from field format.

Holding down shift, click both fields to select them. Then select from Menu, Arrange > Set Alignment > Center-To-Center. Then select from Menu, Arrange > Group.

That should do it for you! I hope that was quick enough? smile.gif

Cheers,

LaRetta

  • Author
  • Newbies

It does it for me and thanks for the super quick response. If you are still online, how would you do it for three possible values? Say Blue for N, RED for Y and BLACK for no value?

Add an additional calculation called LastNameVoteN (text) with: Case(Voted = "N", LastNameField). Leave your original LastName text as black. Copy & then paste your LastNameVoteY calculation and then change its text color to blue. Double-click to bring up Specify Field and select LastNameVoteN.

Be sure your real LastName field is on the bottom of the stack before you align them. You can ensure this by placing it on the layout first or select your LastName field and then from Menu, Arrange > Send to Back. The stack order of the calcs won't matter because they are both transparent. Select all three, align center-to-center and group them! smile.gif

LaRetta

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.