Brian Dunning's FileMaker Custom Functions

chTelNrTrimmen ( FonNrWieEingegeben )

Formats Swiss Telephone Numbers

  Be the first to rate this function Log in to vote

Raffa Hochstrasser   Raffa Hochstrasser - Show more from this author
TCM Aarau

Share on Facebook Share on Twitter

  Sample input:
chTelNrTrimmen (+41798887766)
  Sample output:
079 888 77 66

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

This custom function RECOGNIZES AND TRIMS SWISS TELEPHONE NUMBERS into an easy-to-read format

- Any phone number with swiss prefix will be returned formatted in 3 groups. E. g.: 079 888 77 66, 0800 88 77 66, 062 888 77 66
- Any other numbers will be returned as entered
- Any non-digit character will be removed

Create a backup-field with an exit script trigger, that stores the original number!



Log in to post comments.


Note: these functions are not guaranteed or supported by Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 19 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: