Brian Dunning's FileMaker Custom Functions

SanitizeFieldName ( Field )

Return result of GetFieldName() and add "${" and "}" to field name if needed.

  Be the first to rate this function Log in to vote

Koji Takeuchi   Koji Takeuchi - Show more from this author
TonicNote, Inc.

Share on Facebook Share on Twitter

  Sample input:
SanitizeFieldName ( customer::${nameFirst(foobar)} )
  Sample output:

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

SanitizeFieldName ( customer::nameLast )
-> "customer::nameLast"
SanitizeFieldName ( customer::${nameFirst(foobar)} )
-> "customer::${nameFirst(foobar)}"

Set Variable [ $FQFN ; Value: GetFieldName ( customer::${nameFirst(foobar)} ) ]
-> $FQFN = "customer::nameFirst(foobar)"
GetField ( $FQFN )
-> ?

Set Variable [ $FQFN ; Value: SanitizeFieldName ( customer::${nameFirst(foobar)} ) ]
-> $FQFN = "customer::${nameFirst(foobar)}"
GetField ( $FQFN )
-> value of "nameFirst(foobar)" field.



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 18 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: