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.

Forcing currency format on numbers in a 'text' field

Featured Replies

Hi folks,

 

I have a field which is defined as a 'text' field as it will contain both numbers(currency) and text.

 

The field is defined by the following calculation:

Case(IsEmpty(_pk_InvoiceID); "(Not Invoiced)"; Paid - Subtotal)

Because this field is defined as a text field (to allow insertion of "(Not Invoiced)" string), I can't use the currency formatter in the Inspector. 

 

Any suggestions on how I can force a currency format on the numerical values in this field?

 

TIA

check out www.briandunning.com in the custom functions section. I'm sure there are few that can take a number and fomat it as currency text

The easy way:

 

1. Redefine the field  as =

Case ( not IsEmpty ( _pk_InvoiceID ) ; Paid - Subtotal )

and make the result type a Number.

 

 

2. Place the text "(Not Invoiced)" on the layout and format it conditionally to have a font size of 500pt when =

not IsEmpty ( _pk_InvoiceID )

BTW, this is not only the easy way, but also the correct one: a field should not be "multi-tasking" like that. Just consider what if you ever wanted to summarize this field.

  • Author

check out www.briandunning.com in the custom functions section. I'm sure there are few that can take a number and fomat it as currency text

 

Thanks for this(hadn't found this before) - yes there is a custom function for that there (plus a heap of others I'm going to trawl though now!)

 

The easy way:

 

1. Redefine the field  as =

Case ( not IsEmpty ( _pk_InvoiceID ) ; Paid - Subtotal )

and make the result type a Number.

 

 

2. Place the text "(Not Invoiced)" on the layout and format it conditionally to have a font size of 500pt when =

not IsEmpty ( _pk_InvoiceID )

BTW, this is not only the easy way, but also the correct one: a field should not be "multi-tasking" like that. Just consider what if you ever wanted to summarize this field.

 

Thankyou for that - I thought I was going to have to end up reverting the field back to a 'number' - your suggestion works nicely. 

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

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.