I tried turing on the Javascript debugger and in the box it did not say that there was any problems with my file. So everytime I open up my document it continues to have boxes pop up saying "Malformed SOM Expression..." Please let me know what I need to do to get rid of this popping up everytime I use the file. Thank you.
It's very common to forget to change the scripting language when entering a script in LiveCycle Designer. I do it all the time. This is exactly the kind of thing that would cause the problem you are seeing.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script