Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

This topic is 2941 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.