Planet PDF Forum Archive

Planet PDF ForumWowsers! This is page is old, head to the LIVE Planet PDF Forum. It features more than 10 conferences, covering everything from beginner to in-depth developer and pre-press discussions. If you wish to continue... one & two archive covers 1999-2011 (160,000 pages).


New Forum | Previous | Next | (P-PDF) Developers


Topic: radio button puzzler
Conf: (P-PDF) Developers, Msg: 33691
From: l3onard
Date: 1/28/2002 04:37 PM

here's a question that, superficially, seems like a cake-walk to answer. but in real life it's causing me mucho grief.

suppose we have an option group consisting of three radio buttons ['yes','no','maybe']. let's construct a field to describe this group:

var oReply = getField("Reply")

now suppose we'd like to learn, programmatically, on which button our cursor is RESTING (or focused). This is not to be confused with the VALUE of the option group which is ALWAYS the value of the selected button no matter on which button the cursor is resting.

we know that we can now get the array, above described, with:

var aReply = oReply.exportValues

and if we wanted to get a UNIQUE export value of aReply we can get it with:

aReply[0]; aReply[1]; and aReply[2] (for 'yes'; 'no'; and 'maybe', respectively)

at this point it'd be great if there were a radio button PROPERTY (say, 'rButtonFocus') that could tell me the focus/export value of the button i'm on so that i could test aReply for same. then i could use something like:

var bTest = oReply.rButtonFocus == aReply[0]

but noooo! this is maddening.

the js object help file on page 280 implies the export value can be obtained with 'setFocus() (a METHOD.) mebbe it's me but i just can't see how 'setFocus()' helps with this puzzler.

Can you set me straight?

tia

leonard

PDF In-Depth Free Product Trials Ubiquitous PDF

Debenu Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link...

Download free demo

Debenu PDF Tools Pro

It's simple to use and will let you preview and edit PDF files, it's a Windows application that makes...

Download free demo

Back to the past, 15 years ago! Open Publish 2002

Looking back to 2002, it's amazing how much of the prediction became a reality. Take a read and see what you think!

September 14, 2017
Platinum Sponsor





Search Planet PDF
more searching options...
Planet PDF Newsletter
Most Popular Articles
Featured Product

Debenu PDF Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link control. Take Acrobat to the next level.

Features

Adding a PDF Stamp Comment

OK, so you want to stamp your document. Maybe you need to give reviewers some advice about the document's status or sensitivity. This tip from author Ted Padova demonstrates how to add stamps with the Stamp Tool along with related comments.