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) Beginners

Topic: HOW DO I: Modify a drop down box in Acrobat?
Conf: (P-PDF) Beginners, Msg: 74254
From: glanby
Date: 10/15/2002 06:06 PM


Huge problem, running out of patience!

I´m not an expert, I´m just a novice when it comes to acrobat. Here´s my problem:

I have created a form in acrobat; you write your name, address, bla bla..

I have also created a "drop down box" (in swedish it´s called "a combination box".) Anyway, it´s a dropdown menu, where you can choose an item in the list. Nothing special about that.

I want to be able to modify the dropdown menu, so that if you choose Item 1, a certain calculation takes place in another field. But if I choose Item 2 in the menu, another calculation takes place.

does anyone understand....? Please, help!! This is too much for me!

Thanx a million,

P.s. My co-worker gave me a VBScript she used in a tool called Jetform. I don´t know if it works in Acrobat, but maybe you can change it into Javascript?
Here´s the script:

Page1.Txtheltid2[1]::Onvalidate() - (VBScript)

if LboxFormTag.Text="Deltid = 1B" then
TxtDeltid2.Value= Txtheltid2.Value * TxtSyssgrad.Value
end if

'räknar ut lön med hjälp av uppehållsfaktorn
if TxtUHFaktor.Value <> "" then
tal2 = Txtheltid2.Value * TxtSyssGrad.Value
TxtUppehlon2.Value = tal2 * CSng(TxtUHFaktor.Value )
TxtDeltid2.Value = Empty
end if


Page1.TxtHeltid[1]::OnValidate() - (VBScript)

if (LboxFormTag.Text="arbetstagare gr 2 tim = 2" OR LboxFormTag.Text="Intermittent0 6") then
TxtTimlon.Value = TxtHeltid/165
TxtTimlon.Value = Empty
end if

'räknar ut deltidslön hur validera med fältet sysselsättningsgrad and TxtSyssGrad < 100
if LboxFormTag.Text="Deltid = 1B" then
TxtDeltid.Value= TxtHeltid.Value * TxtSyssGrad.Value
end if

'räknar ut lön med hjälp av uppehållsfaktorn
if TxtUHFaktor.Value<> "" then
tal = TxtHeltid.Value * TxtSyssGrad.Value
TxtUppehlon.Value = tal * CSng(TxtUHFaktor)
TxtDeltid.Value = Empty
end if

Tommy Glanby


Malmoe, Swe

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

Five visions of a PDF Day

In the world of PDFs or as we like to say Planet (of) PDF, a year isn't a real PDF year without an intense few days of industry knowledge sharing.

May 15, 2018
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.


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.