Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

  • Newbies
Posted

Hi,

first post and a newbe.

How should I go about defining a field with the following format:

123456/78

123456/7

- max nr. of characters is 9 including the slash.

- the slash comes always after 6 characters.

- may end with xxxxxx/[color:red]1 or with xxxxxx/[color:red]12

any pointers appreciated.

Posted

first post and a newbe.

Hi Jays - and welcome.

How should I go about defining a field with the following format:

123456/78

123456/7

- max nr. of characters is 9 including the slash.

- the slash comes always after 6 characters.

- may end with xxxxxx/[color:red]1 or with xxxxxx/[color:red]12

I suggest you set the field as an auto-enter calculation (in the FIeld Options dialog), disable the option labelled "Do not replace existing value..." and enter a formula along the lines of:

Replace( Left( Substitute( YourField; "/"; ""); 9 ); 7; 0; "/")

There are various other ways the formula could be constructed to achieve a similar outcome, but the above is probably as good as any. :wink2:

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