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.

Trim ( )

Featured Replies

Hi,

I started out just wanting to trim "Fields" due to customers inadvertently entering "Carriage Returns".  Not wanting to build individual trigger script for each endless possible fields,  I built a simple trigger script I could attached to any field that requires clean data.

However, please see attached script which errors to: "Field Missing" ?? I have absolutely no idea what is wrong.  

It was suggested to use the "Auto Enter" feature and this too does not "TRIM" the field even with "Validation - Always" selects ?? What is up with that ??

What am I doing wrong in the script, and can someone explain why the "Auto Enter" is not working either.  Is it only for initial record create ??

Thank you.

Screen Shot 2016-08-12 at 10.56.08 AM.png

Screen Shot 2016-08-12 at 10.58.20 AM.png

For the auto-enter, use:

trim( self )

I frequently use

trim( textFormatRemove( self ))

49 minutes ago, Mr. Ignoramus said:

due to customers inadvertently entering "Carriage Returns".

The Trim(0 function removes leading and trailing spaces - not carriage returns.

if you don't want users to enter carriage returns into a Text field (which ordinarily they should be able to), perhaps it would be enough to set the field's data entry behavior so that pressing Return and Enter results in moving the cursor to the next object (as pressing Tab does).

If not, consider auto-entering a calculated value (replacing existing value) =

Trim ( Substitute ( Self ; ¶ ; " " ) )

 

 

Edited by comment

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.