Brian Dunning's FileMaker Custom Functions

AutoPct ( myValue )

Simplifies data entry of percentage values

  Average rating: 3.7 (3 votes) Log in to vote

Edward L. Scott   Edward L. Scott - Show more from this author
Scott Resources

Share on Facebook Share on Twitter

  Sample input:
AutoPct ( 1 ) or ( -1 )
AutoPct ( 10 ) or ( -10 )
AutoPct ( 99 )
AutoPct ( 100 )
AutoPct ( .999 ) or ( -.999 )
  Sample output:
1% or -1%
10% or -10%
99.9% or -99.9%

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

For a user-entered number field formatted in the user interface as a percentage, set the field to auto-calc to "AutoPct ( myValue )" while turning OFF the option to "Do not replace existing value in field (if any)".

Now users may avoid doing math in their head and simply type in "50" to enter 50% in the field, "100" to enter 100%, or "2.5" to enter 2.5%.

Users who cannot break the habit of typing in ".5" for 50% are not affected.



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