I have set the text properties for the text fields which works fine when typing the text, but when copy/paste from another sourse, the text format is being used from the document I copied it from. Is there a way to preserve my own text style when pasting text into a field?
If you are manually pasting, use the PASTE TEXT ONLY feature from the EDIT menu or use the keyboard shortcuts...
If you are using a script, make sure you are using the "paste without style" option.
You could also make the field auto-enter, uncheck "Do Not Replace..."
Use TextFormatRemove(self) in a auto-enter calculation. Check the calculated value, enter TextFormatRemove(self) as the calculation, then uncheck do replace existing values.
You can also add an auto-enter calculation (always replace):
= TextFormatRemove ( Self )
And if you forget to use the paste-text-only feature and text formatting is applied, I've found that (on MacOS, at least) you can do "undo" (Command-Z) once, and it'll undo just the formatting. A second undo will undo the paste altogether.
The TextFormatRemove (Self) option is a simple solution but it can be problematic. If you use this you will not be allowed to format any text in the field. A slightly different option is to create a script and a button that will remove the formatting. This would allow the user to choose if they want to remove the formatting. A more complex solution would be to remove formatting just from highlighted text.
press "Command + z" immediately after the pasting (at least before you do any text editing)