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.

TextColor with Number field

Featured Replies

Hi all,

So, here's the story...

The users want to be able to have a new line item on a purchase order pull in the last price at which they bought that item. And, they want the "read in" price to be in black on the layout. If, on this occasion, we are purchasing the item for a different price, the user needs to be able to overwrite the price that was provided from the last record; when this happens, the price should change to grey on the layout. Also, if we have never purchased this item before, the unit price field should be blank and the user can enter the price.

So, what I've tried to set up is an auto-enter calc which works beautifully AS LONG AS the field in question (Unit Price) is defined as a text field. But this won't do, since the field must display on the layout with a $ sign, etc. The calc I am currently using is:

Case(IsEmpty(UnitPrice);TextColor(Last ( poli_POLI~goodID::UnitPrice );RGB (0;0;0));

TextColor ( UnitPrice ; RGB ( 138 ; 146 ; 149 ) ))

I have fooled around with the GetAsText function and still no luck. Wondering if I need to adjust the calc to include the dollar sign and decimal points, etc. or if there's an easier way and I'm missing something.

Thanks for any input!

Kate

Kate there was a post regarding almost your same issue yesterday. Please check out this thread.

Thread

  • Author

So sorry... I promise I did surf and try to find a post...but obviously not thoroughly enough!

And yes, this works and it's beautiful. Many, many thanks.

Kate

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.