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

Dropdown lists adds to running count

Mitchotron
Registered: Mar 20 2009
Posts: 21

I'm trying to program a form that will allow someone to price a video system based on the number of specific locations a connection is run to.

Right now I have dropdown lists of the 5 specific locations (wall, desk, etc) for 6 different sources. Each source can have a maximum of 4 instances. What I need is a way to add up the number of times a location is selected keyed to the type of signal so I can then generate a list of connections kits.

gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
You would need create a variable for each type of signal (set the initial value to zero) then loop through each location (a 'for' loop), count the type of signal selected (use an 'if' statement to determine the type of signal). After you have a looped through each location the variable for each type of signal will hold the count for the number times that signal source has been selected. and you set the count for the specified signal type count field.

George Kaiser