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.

Adding a comma to a number in a paragraph

Featured Replies

I'd like to us a number in a thank you letter but can't get the calculation to show a comma. So here is the calc

"Thank you for your donation of$" & getastext(trans_amount)& " your donation will. . .etc."

Is there a function to add a comma to the number?

Thank you in advance.

Use a merge field instead of a calculation. And simply refer to the number field within it. When you do, you can then select the merge field and go to Field Behavior and Number Format. From there, since it is the only number in the merge field, you can specify number formatting, including number of decimals and using comma separator.

So your merge field would look something like:

Thank you for your donation of <>. Your donation will. . .etc

Now you can format the number.

Edited by Guest
Added example

  • Author

Thanks for the recommendation. I find the merge fields don't really line up well in a paragraph format, so I'd prefer to use a calculation. Is there any way to force the format in the number within the calc?

Thanks again.

See if this works for you.

http://fm.fmcode.com/fmcode/codeDetail.php?id=1946

You could try:


"Thank you for your donation of $" & NumToJText ( Amount ; 1 ; 0 ) & " your donation will. . .etc."

However, a merge field is simpler to implement and it should work perfectly well.

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.