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.

Remove extra characters

Featured Replies

I have been asked to do typists' jobs for them. If they put have a paragraph and have more than one carriage return they want it removed. And if it ends or begins with extra carriage returns they want them removed. I have tried auto-enter please see test file. I also need to remove formatting if they paste bold or other sizes and fonts.

It does not work. Is it better to use script trigger?

test.zip

Substitute ( <data entry field> ; "¶¶" ; "¶" ) will replace two consecutive carriage returns with a single carriage return

Trim( <data entry field> ) will remove extra leading or training spaces

TextFormatRemove( <data entry field> ; format ) will remove the formating.

I would set this as a calculation and replace field contents.

You can use the Substitute function i.e. Substitute (YourTextField; "¶¶" ; "¶" )

Go to Brian Dunning's custom function site and get Ray Cologon's Trim4() function. Then make an auto-enter calculation:

Trim4( TextFormatRemove( self ) )

This will remove all leading and trailing white space and remove all text formatting.

  • Author

Thank you Kris and Lee. Yes, that is what I was using in sample file. But if someone had three returns, the substitute would not remove two of them.

Vaughan, thank you! You may be 'Mostly Harmless' but you are also a good adviser. And thank you Ray for the custom function.

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.