Planet PDF Forum Archive

Planet PDF  ForumThe page you are viewing is part of our 160,000 page discussion forum archive. See below for PDF-related discussions spanning 1999-2008. To ask questions and get help, head to the live Planet PDF Forum.


How to search this archive. The quickest way is to use the filters on our Advanced Search page so that only archive pages are included in the results.


Previous | Next | (P-PDF) Forms & FDF


Topic: Highlighting a text field when cursor enters
Conf: (P-PDF) Forms & FDF, Msg: 29212
From: Jub
Date: 10/26/2001 09:26 AM

Catherine,
Depending on the version of Acrobat you are using...
Go to Tools -> Forms -> Doc Level Javascripts
or
Tools -> Javascript -> Doc Level Javascripts

Add the name of your script ('ChangeColor')
and click add/edit...
Paste in the script and save out.

Now go to a field in Form Tool mode.('F')
Open up the Field Properties box
(double click or right click and choose properties)
Under the Actions tab click on 'onFocus', then 'Add',
and hit 'J' to get the Javascript option.
Click 'Edit' and type/paste in the call to
your function - e.g.

ChangeColor();

Add another Javascript action in the onBlur event.

To use the setFocus method, find the name of the field which you would like the user to start on...

Then either make this the first field in the tab order
Tools -> Forms -> Fields -> Set Tab Order

or set a set a Page Action to move the focus to this field.
Document -> Set Page Action -> Page Open...'Add' etc
and put in the following lines...

var FirstField = this.getField("FirstFieldName");
FirstField.setFocus();

If you have the onFocus action in that field calling your doc level function, when the page opens that
field will miraculously turn yellow....
HTH,
Jub

PDF In-Depth Free Product Trials Ubiquitous PDF

Pitstop Pro

Now graphic arts professionals have even broader and more expert control over their PDF documents. With...

Download free demo

ARTS PDF Aerialist

The ultimate plug-in for Adobe Acrobat and #1 selling product at PDF Store. Advanced splitting, merging,...

Download free demo

Ubiquitous PDF: 2009 IRS income tax forms available for download

With less than a month to go until Americans will be scrambling to file their 2009 tax paperwork. Luckily, printable PDF versions of forms such as the 1040 can be downloaded for free from the IRS website.

March 18, 2010
Search Planet PDF
more searching options...







Download PDF Creator

PDF Resources
Platinum Sponsor
Create & Edit PDF - Nitro PDF Software

ARTS PDF

Silver Sponsors

PDF-Tools QuickPDF: The Unrivaled PDF Developer Toolkit

Get Nitro PDF Professional
Featured Product

NITRO PDF Professional

Built from the ground up, the perfect desktop PDF product for business and enterprise. Nitro PDF Professional has an uncompromising feature set so you can create, combine, edit, collaborate on and...

Featured Event

No upcoming events

PDF Store Categories