Hey Guys,
Im not that great at Javascript, and I am even less great with Adobe Standard, but I've been surfing for a few days through the threads hoping to find something that would work for me with a little editing, but either I am getting lost in some of the code, or there isnt anything that exactly fits what I am trying to do with forms... Let me try to explain it.
I have 2 Rows of Text Boxes and a final textbox for output;
The First row of text box is for the names of equipment, the second row is the quantity for each of those rows perspectively.
I want to be able to do the following;
If Quantity is greater than 0, I would like to be able to Apply the Name and quantity to an Array or set of arrays as needed
Then in the third text box, I want to be able to Display the Contents of the arrays.
For Example
(Equipment Textboxes) (Quantity Textboxes)
Equip1 Quantity1
(OutputText Box)
Ladders - 3
Next Equip - and Quantity
I sort have come up with a basic code that somewhat works, but I dont think with my current work, that the format would allow for me to do the Quantity Check and only provide the Equipment that has a Quantity. Here is the code I have come up with.....
var eQuipMent1 = this.getField("Equip1");
var QuanTity1 = this.getField("Quantity1");
var eQuipTotals = this.getField("EquipOutputBox");
if (QuanTity1.value > 0) { three.value = eQuipMent1.value + " " + QuanTity1.value + "\r\n " }
}
But like i said.. I dont think that would work out, and I am creating variables for each of the Equipment and Quantities, and I dont think that would work. I might be making this more complex than I mean to.
Any help or advise is welcomed greatly!
Thanks,
Cory