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.

Copying Field Data w/out Formatting?

Featured Replies

I have a client who occasionally needs to copy and paste addresses from an FMP field and into a Word document. He is asking if I can set the field so that the text can be copied "without text formatting". Apparently in his previous FM solution (which were .fp5) when they pasted in text, it automatically adopted the target document's font/size etc.

He writes:

"Yes, the pop-up displays in 13 pt. Arial. And that is what you get when you paste it no matter what the target formatting is. For example, I want to paste an address in a Thank You letter template that uses 12 pt. Times New Roman. With our old database, it would the copy-and-paste address would just automatically take the target formatting. Now it it automatically pastes with the source formatting. Microsoft Word does offer the option after something is pasted to keep the source formatting or match the destination formatting. But this is an extra step that some of us are not used to performing."

I tried wrapping the field in a TextFormatRemove ( text ) calculation, but that hasn't solved it.

I have kind of a shaky sense of how FM handles formatting. Is there a way in FM11 to deliver the behavior he desires?

thanks!

Well, to begin with, the data in the field should have no styling of itself; it should be plain text. Otherwise the data-level styles will override the layout-level settings. If that is the case, then the text copied from the field will also be plain text and will not carry any memory of the formats applied to the field's instance on the layout.

Your clients needs to learn how to *paste* without formatting, rather than trying to change the text afterwards. If they are on a Mac use the "Paste and Match Style" command. If on a PC there is usually a "Paste Special" command that has a plain text option.

  • Author

Thanks for the replies -- so, Comment, if the field in question is a Calc field (it concatenates the various pieces of info in to an address) and in the Calculation I wrap the entire thing in:

TextFormatRemove ( text )

. . . then that's about all I can do from my end, right? Or do I need to go to each of the little fields (name, address line 1, state, etc . . .) and set *them* up as calc fields that display TextFormatRemove ( Self ) . . . or . . . .?

Thanks Vaughn, too -- that was sort of my impression, but they had said this wasn't an issue in their earlier Filemaker -- maybe by chance the Filemaker field was formatted the same way as the desired target text.

  • 1 month later...
  • Author

Could anyone confirm whether setting up a Field with an auto-enter calc: TextFormatRemove ( Field ) will reliably strip the inserted data of formatting?

Yes, if you uncheck in the auto-enter (do not replace existing value of field if any). Then any time field data is changed, TextFormatRemove() will strip the formatting on it. :^)

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.