Automatically Remove Text Formatting

Version 2

     

    Web Viewer

     

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

    Description

    Every developer has encountered this problem at one time or another. User's copy/paste text from the Internet or from a Word document and the font, size, color, etc. is not the same as your solution. As a result, the appearance of the data from record to record is really messy. Of course, the worst case scenario is that you have some type of report or mail merge where the formatting affects the appearance. So the question is, how can you force the users to always use the standard formatting for the field? The answer is surprisingly simple. Use the Auto Enter Calculated Value for the field with the following formula. Make sure you also uncheck the box for do not replace existing value of the field so the calculation runs every time the field is modified.

     


    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.