How can I control the text formatting in a field where users copy and paste text with style?
When text is pasted into a FileMaker text field, two operations are performed: first the character stream is entered (i.e. the words and elements of the text itself), then the formatting information found in the clipboard is applied to the text stream.
The result may look ugly if the font, colour, size or other formatting does not fit for the current field style. There are two ways to avoid or handle this situation.
•With no developer action required, the user can just undo the last of the two operations and see the result as intended on the layout in question (Use either ‘Undo...’ from the Edit menu or press ctrl-z (Windows) or cmd-z (Mac OS) on the keyboard)
•a developer can change the field’s settings; most efficiently in the field definition for that field an auto enter option is specified: TextFormatRemove ( Self )
Other option exist for special circumstances; e.g. Script Triggers could be used.