samshem Posted February 24, 2005 Posted February 24, 2005 I some help on how to auto format a field. I would like to be able to enter a 3 digit number such as 203 and have automatically formatted as 2.0.3 when I tab to the next field. I found a template on how to do something similar to this for a phone number field but am unable to adapt it to what I need. Any help would be greatly appreciated. Thanks!
RalphL Posted February 24, 2005 Posted February 24, 2005 Use auto-enter by calculation using Left(field; 1) & "." & Middle(field; 2; 1) & "." & Right(field; 1) wher field is the field name. Allow the value to be replaced. This is a text field.
-Queue- Posted February 24, 2005 Posted February 24, 2005 Use an auto-enter calculation with 'do not replace' deselected. Let( T = Filter( thisfield; "0123456789" ); Case( Length(T) = 3; Left( T; 1 ) & "." & Middle( T; 2; 1 ) & "." & Right( T; 1 ); "ERROR" ) ) Of course, this should be a text field.
samshem Posted February 24, 2005 Author Posted February 24, 2005 Use an auto-enter calculation with 'do not replace' deselected. Let( T = Filter( thisfield; "0123456789" ); Case( Length(T) = 3; Left( T; 1 ) & "." & Middle( T; 2; 1 ) & "." & Right( T; 1 ); "ERROR" ) ) Of course, this should be a text field. That worked great, thanks so much!
Recommended Posts
This topic is 7281 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