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: 27668
From: kjfish
Date: 9/27/2001 03:59 AM

Problem:
How to let the user know where he/she is in a form
that contains a lot of text fields.

One Idea:
As the user tabs through the text fields the fill color
of each text field changes from white to a light
yellow when the cursor enters the field then
changes back to white when the cursor moves to
the next field.

One Solution:
I used the On Focus and On Blur actions for each
of the fields.

Here is the code I used for the On Focus action so
the color would change to a light yellow (kind of a
Post-It note yellow).

color.theColour = new Array("RGB",1,0.994,0.820);
this.getField("TextBox.2").fillColor = color.theColour;

Here is the code I used for the On Blur action so
the color would change back to white.

color.theColour = new Array("RGB",1,1,1);
this.getField("TextBox.2").fillColor = color.theColour;

So far I have just been working with just 3 text
fields to get this to work. And it does seem to work.
But it also seems like it would be a lot of work to
copy these scripts to each action in each field if
there were several dozen fields in the form. And
then if I wanted to change the color? Well, even
more work.

In know the user could check the 'Highlite Form
Fields' box in Preferences but a lot of folks here at
the office wouldn't know to do that.

Is there a better way to do this.

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