Phone Filter onObjectKeystroke

Version 2

     

    Script

     

    Compatibility
    Creator
    Mac OS X, Windows
    Todd Duell
    FMP 10, 11
    Formulations Pro
    Web: No
    File Type: FP7
    Server: Yes
    FileSize: ~ .66 megabytes
    http://www.formulationspro.com

    Description

    The phone filter example has been around for a long time. The last time it was really updated was when FileMaker implemented the auto enter calculated value/replace function. The problem with this technique is that it didn't actually filter the contents until after the user exited the field. That meant that it miss-trained your users into a false sense of entering the data correctly because they could type anything they wanted and it would show up in the field until the field formatting and/or validation was triggered. New to FileMaker Pro 10 is the onObjectKeystroke trigger. This new trigger can be used to create a new standard of data entry formatting that is triggered while the user types so they get instant feedback and correct formatting with a minimum amount of data entry.

     


    Code

     

    Sample Input

    Sample Output


    Developer's Notes

    See sample file for full demo and technical article.

     


    FileMaker Inc. provides this content on an “As Is” basis, without any warranty, and subject to the terms of the FileMaker Technical Network Agreement. FileMaker makes no representations and is not liable for any content or related information. You may use the content as part of your own solutions and for your customers, but you may not otherwise publicly distribute any content that you did not submit. ©2009-2011 FileMaker, Inc. All Rights Reserved. FileMaker is a trademark of FileMaker, Inc. registered in the U.S. and other countries.