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.

Can I format the text output in a Calculation

Featured Replies

I have a large (dimension) calculation that results in a formated paragraph of text. The input is some boilerplate text and check box value list selections. There are a total of 10 check box selections that can be added to the paragraph but not all 10 will always be needed. I need to have each check box selection separated from the next by a carriage return. If all 10 are selected the paragraph looks great, but if for instance only 4 or 5 are selected, additional space is inserted into the paragraph where the non-selected entries normally would be. So here is my question: is there some way to format the field or a function that will force the calculation to dynamically format the field for the proper spacing when not all 10 selections are chosen?

Thanks,

Joe confused.gif

You can remove the spaces or carriage returns by Substitute() in the result.

  • Author

Anatoli,

I forgot to mention that I want to maintain a line space between check box selections. Can I still use Substitute()?

Thanks

Joe

I guess yes. Replace two or three par.gif with single par.gif. It should work.

There is another way. Include the

It seems strange that you get extra space when you only select a few items. No matter which combination of items you check, Filemaker should only put a single

  • Author

Thanks for all the replies. I never did try and figure out how to use Substitute or Fenton's solution. I had to get the DB to the people who needed it, so they'll just have to deal with the extra spaces.

Bob, I included a carriage return between each check box field in the calculation because I wanted to ensure that there would be a space between each. What I'd hoped is that if say the 2nd check box was empty, it wouldn't show up in the calc field and the 3rd check box would somehow slide up to be under the first (while maintaining a space between the 1st. and 3rd.).

Anyway, thanks. When I get some extra time (yeah right) I'm going to try and figure out Anatoli's solution and give Fenton's a try as well.

Joseph

Okay, I was thinking that you had a single field with multiple checkbox items rather than several fields with single checkbox items.

I gave a substitute formula in one of the other threads which will convert multiple linebreaks into a single one. Here it is again:

Substitute(Substitute(Substitute(Substitute(MyInputText,

"

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.