- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Your logic is correct but the execution is not. Acrobat (the application) owns the placement of the cursor. The objects that are created for your form do not exist in Acrobat until the form is loaded and the user has control. This means that any script to access those objects (through Acrobat) will error out saying the object does not exist before the user has control. So we have to issue the command in the future, after the form is loaded and the user has control. So if we put code on the docReady event (one of the last thing sto heappen before control is given to the user, we can ask Acrobat to run this command in x number of milliseconds
Note that this is an AcroForm command and we have to use the full name of the field to pass to the command. The string in between the quotes is a command on its own that will be executed 100 milliseconds after this command is executed. The "this" portion of the command refers to the doc object in Acrobat not the current object like we do in XFA.
Make sense?
Paul
Views
Replies
Total Likes