Jump to content
Server Maintenance This Week. ×

Auto format a field


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

Recommended Posts

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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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