Hi,
I am struggling to get this relatively simple programme to work, and would be very grateful if anyone could offer any help.
I have a form that needs to be changed often, so I am trying to write a javascript that is triggered by a button and sets a series of prompts, like:
varTitle = app.response("Title of Meeting:","Customising");
OK so thats fine, then I need to replace the text field content with that of varTitle. This is where I have problems, I cannot seem to reference the field properly.
I have tried this.getField("MeetingTitle"); and get "null" as a response in the debugger, and trying to change properties of this says that it has no properties.
Any help would be greatly appreciated.
Thanks,
Tom
These are two very different forms technologies and have very different scripting models, i.e. Fields are accessed differently in each.
The next thing to check is the field name. Scripts are very picky about spelling. The names have to match exactly, even the upper and lower case letters.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script