Brian Dunning's FileMaker Custom Functions

fn_nameProper ( field )

Convert name input to Title Case unless intentionally otherwise (e.g. O'Brien, McConnell, FileMaker, etc)

  Be the first to rate this function Log in to vote

Keywords   Keywords - Show more from this author

Share on Facebook Share on Twitter

  Sample input:
brian dunning
  Sample output:
Brian Dunning

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

// PURPOSE: to format Name data in the standard format required
// NOTE:
// 1. result must (1) contain no extraneous spaces, (2) contain no carriage returns, and (3) be in Title case—unless intentional: see below
// 2. this version incorporates a Case function ("formatted" variable) to allow any non-standard capitalisation initially or subsequently entered by the user. This calc was submitted to the FM Technet Forum by Phil Caulkins, aka PhilModJunk, aka Caulkins Consulting
// 3. the result will still remove extra spaces and carriage returns but will accept any non-standard capitalisation

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. 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 20 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: