Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 4566 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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.

Posted

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

Posted

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.

  • Like 1
Posted

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.

This topic is 4566 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.