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.

Format text via a Calculation?

Featured Replies

  • Newbies

Can I perform a calculation with the result being a different text format?

Example: if a test score < 70 can the result be, format the text in Red, and all values equal to or greater than 70 be displayed in Black.

Help! and Thanks in advance for your answers!

You can create two calculated fields,

Test_Score_Red = Case ( Test_Score < 70 , Test_Score, "" )

Test_Score_Black = Case ( Test_Score >= 70 , Test_Score, "" )

On your layout, give the topmost one (the one created last) a transparent background and give the bottom-most one an opaque background. Align them center to center & make sure they are same size & format with exception of text color.

This will give the appearance of what you ask, but you need to actually enter the test score in the "real" Test_Score field, somewhere else.

  • Newbies

Also do sliding up (reduce size of part) so that only one of the two choices will show in you preview or printed page.

(I'll try this post again. Almost had it done when zNET went down for 4 hours, so much for their ever improving (lately declining) QOS.)

You can go one step further and stack the entry field under the two calculated fields. Make the bottom calculated field opaque white. Disable "allow entry into field" in Field Format. Even though they are calculated fields, this will prevent them from being selected when you click on the stack of fields for data entry. When you click on the stack, you will be taken to the bottom (entry) field and be able to enter data.

-bd

  • Author
  • Newbies

Thank you for your help! I used all of your advice and it worked perfectly, I read about formating text in FilMaker Pro 5 Companion and the Quickpro guide and my text always came out funky. You guys had the missing links for me, thanks a million. I took FileMaker classes but they realy fell short on scripting and calculations basically wasted time and money.

Thanks Again,

John

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.