"... you mean these fans?" Posted August 12, 2016 Posted August 12, 2016 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.
bruceR Posted August 12, 2016 Posted August 12, 2016 For the auto-enter, use: trim( self ) I frequently use trim( textFormatRemove( self ))
comment Posted August 12, 2016 Posted August 12, 2016 (edited) 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 August 12, 2016 by comment
Recommended Posts
This topic is 3081 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 accountSign in
Already have an account? Sign in here.
Sign In Now