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.

Removing unwanted carriage return at end of text ?

Featured Replies

Could someone please share with me how I can prevent the user from entering carriage returns at the end of a text field ?

or

Could someone please share with me how I could remove unwanted trailing carriage returns (that are followed by a blank line).

--- my exact problem is this:

2 fields:

street address

city, state, zip (combined from other fields)

On certain records, my users have entered a blank line after the text they've entered in the street address field, so my letter and envelope looks like this:

Tom Smith

12 Park Place

Box 479

New York, NY, 10021

what's the best way to avoid or deal with this ?

Thanks smile.gif

You can use a field validation of not Position( field, "

  • Author

uh oh.. I'm kind of a newbie..

could you be a little more specific about how I use not Position(field, "

In Define Fields, select your field and click Options. Select the Validation tab and click 'Validated by calculation'. In the resulting dialog box, enter either not Position( fieldname, "

  • Author

thank you..but... the problem with this is..

The field does have some valid carriage returns in it.

I don't want to test for carriage returns.. but only for those occurrences where a carriage return is followed by a blank line..

from my original post:

Tom Smith <---- all this (Tom Smith, 12 Park Place, Box 479, and that last carriage return)

12 Park Place are from one field... the last space is because the data enterer

Box 479 hit return one time too many... how do i get rid of that extra "return"

so there is no space before the 2nd field

New York, NY, 10021 <-- this is from the 2nd field when i use merge fields on my form letter ?

This would work to strip off one carriage return off the end of Address:

If(Right(Address,1)="

Try:

Case(Right(Text,1)=

See if the 'Trim' function can do something for you....

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.