I started a form from Acrobat with a Word document. I inserted fields and made the default Times New Roman with a 12pt. font. Because I need the fields to automatically shrink with the information entered, I entered $.font.size = "0pt" in form calc on the fields. Yesterday it worked fine and only shrunk the long fields. Today I switched to .pdf view and when I go to type in the fields, the font size remains at "0" no matter how much info I type in. I only need the font to shrink if the info entered into the field becomes too long. How do I fix this?
Text can only be AutoSized in a Dynamic LiveCycle Designer form. So make sure you save it as Dynamic. Also make sure that your script for setting the point size is in the "Initialize" event for the field.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script