These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Dynamic Forms

gotcha75
Registered: Dec 14 2010
Posts: 3

ATT Adobe Acrobat Guru's
 
I am code challenged. I am fairly certain this possible I have no idea how to accomplish it. Thank you kindly in advance for your direction
 
I need to create a form where the user can choose from a list and based on that choice, more choices will appear.
 
IE\ 1 Drop Down Box and 4 Radio Buttons
 
if Location 1 is chosen, the 4 radio buttons will diplay.. 1A 2A 3A 4A
 
if location 2 is chosen, then the 4 radio buttons will display.. 1B 2B 3B 4B
 
etc...
 
I apoligize if those doesnt make sense of if the topic has been beaten to death.
I did a bit of searching but I see 100 ways to do it and I really dont know the best way to approach this.
 
Thank you kindly.
   

My Product Information:
Acrobat Pro Extended 9.0, Windows
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi gotcha75,

Check out the Learning Center tutorials here. I know one is titled "Programming List Fields...." so if you search on that you'll find it. There are also PDF files you can download from those tutorials with sample code to examine and learn from.

There is typically more than one way to acoomplish most tasks- it is up to you to deicde which method is best for your specific situation. This is a great place to ask specific questions once you've already tried something and it isn't worksing. Posting code you have tried is always good too, so that others can see what you are doing and not waste a lot of back and forth without the details needed to best help you.

Dimitri
WindJack Solutions
Online Acrobat JavaScript Training & Resource Library
WindJack Solutions
gotcha75
Registered: Dec 14 2010
Posts: 3
Ill do my best, however, I am about as much of a coder as I am the president of the hair club for men. hehe

ill see if i can find a downloadable PDF and deconstruct it. That will be my best bet I think.


Thank you for such a speedy response.


gotcha75
Registered: Dec 14 2010
Posts: 3
Hi Dimitri

I took your advice and have been trying to understand the "programming lists example"
I can see what it does and I sort of understand how its done however, When I try to deconstruct it and make it work, something breaks. I think part of the problem is there is more being done in teh document than what I need so I believe it might be there that im having the issues.\

There are 3 fields in the example

Assembly, Part and Price.

For me, I only need 1 row as opposed to multiple as well, I need 3 text fields as opposed to 2 text and 1 number.

When I tried to deconstruct the Jave, I changed the item names it did work except when I tried to change the prices, IE ["Rear Bracket",205.95] to a text value for what I need it just came back as 0. which i supsect somewhere the value price is being set as a number not "none"... I checked high and low in the document and it continues to fail. Is there anyway, you could explain how I could disect the Java to only see the parts I need so I can learn the syntax. At this point, Im seeing far to many things going on.

Below is the snippet that I use to create the data for my list.

var oAssemblyParts = {
Chasis: [ ["-","None"], ["Rear Bracket",205.95], ["Front Bracket",185.95], ["Long Support",44.95],["Front Bearing",48.95]],
Clutch: [ ["-","None"], ["Plate 1",15.95], ["Plate 2",22.95], ["Inside Shaft",44.95],["Outside Shaft",32.95]],
Brake: [ ["-","None"], ["Master Cylindar",139.95], ["Slave Cylindar",85.95], ["Pad",15.95], ["High Presure line",22.95]],
Coolant:[ ["-","None"], ["Pump",35.95], ["Thermostat",19.95], ["Coolant Line",8.95],["Reservoir",17.95]]
};