August 12, 20169 yr 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.
August 12, 20169 yr For the auto-enter, use: trim( self ) I frequently use trim( textFormatRemove( self ))
August 12, 20169 yr 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, 20169 yr by comment
Create an account or sign in to comment