PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/ __________________________________________________________________
Jub Sorry for the slow response - I don't want to seem unappreciative of your help. This did work for me. Thanks for taking the time to respond. Kenn. ----- Original Message ----- From: "J Bealer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, April 17, 2004 9:04 AM Subject: RE: [PDF-Forms] Array Set-Up Question PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/ __________________________________________________________________ How about using a multi-dimensional array? var gmagazine = new Array gmagazine["mhm"] = ["48","12","20"]; gmagazine["abc"] = ["33","66","99"]; var trimFld = this.getField("spec_trim") var liveFld = this.getField("spec_live") var bleedFld = this.getField("spec_bleed") var testVal = event.changeEx; if (testVal in gmagazine) { trimFld.value = gmagazine[testVal][0]; liveFld.value = gmagazine[testVal][1]; bleedFld.value = gmagazine[testVal][2]; } Hope that helps, Jub >From: "kc" <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: <[EMAIL PROTECTED]> >Subject: [PDF-Forms] Array Set-Up Question >Date: Thu, 15 Apr 2004 15:15:09 -0500 > > >PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/ >__________________________________________________________________ > >Hi List > >I put this array on the document level of my form > >var gmagazine = new Array >gmagazine["mhm"] = "48" >gmagazine["mhm"] = "12" >gmagazine["mhm"] = "20" > >I then put this on a combo box of the form > >var trimFld = this.getField("spec_trim") >var liveFld = this.getField("spec_live") >var bleedFld = this.getField("spec_bleed") > >if (event.changeEx in gmagazine) >trimFld.value = gmagazine[event.changeEx] > >My goal is to have: > 48 appear in the text field "spec_trim" >12 appear in the text field "spec_live" >20 appear in the text field "spec_bleed" > >I know as currently constructed, the array will only work if I have one >text >field associated with the export value of "mhm". How do I create an array >that allows for three separate values (for spec_trim, spec_live and >spec_bleed, from a single export value of "mhm" > >Is this possible? > >Thanks in advance for any assistance. > >Kenn > > > >To change your subscription: >http://www.pdfzone.com/discussions/lists-pdfforms.html > _________________________________________________________________ >From must-see cities to the best beaches, plan a getaway with the Spring Travel Guide! http://special.msn.com/local/springtravel.armx To change your subscription: http://www.pdfzone.com/discussions/lists-pdfforms.html To change your subscription: http://www.pdfzone.com/discussions/lists-pdfforms.html
