Hi Thom, Thanks for replying to my previous question about getting my custom format script to export what the content is formatted to. I put all of my code inside of the if(event.willCommit) command as you indicated. However, when I do that, the script no longer formats my text. I did this in the Custom Format Script window. Did you do something incorrectly? Thanks again for your help!
if(event.willCommit)
You have a lot of code here so it is difficult to debug. Start out with a single line to make sure you've got everything ok. Like this.
if(event.willCommit)
event.value += "Hello There";
You cannot have any other code on this field for formatting, keystroke, etc. that will interfere with this.
Thom Parker
WindJack Solutions
[url=http://www.windjack.com]www.windjack.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script