PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/ __________________________________________________________________
Mark and Max Thanks for the help. I am going to take another shot at getting it working today.. Kenn ----- Original Message ----- From: "Lauterbach.Mark" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 31, 2004 7:30 AM Subject: RE: [PDF-Forms] Make Multiple Selectios From List, Then Display in Three Text Fields PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/ __________________________________________________________________ Hi, Kenn Not necessarily. I believe you need to "get" oFromSelect, assuming "oFormSelect" is the name of your list field. As far as defining all 83 values, you can probably let the list box handle that as each selection's export value. I noticed you have still not "defined" dmm1, dmm2, and dmm3, either. You may have to "get" them first, too (this.getField()) One other thing I noticed, the variable "selection" is defined as a literal string with spaces and the logical AND (&&). So if I read your script correctly, you will be assigning exactly "dmm1 && ." to each of the three possible selections. I think what you mean to say is selection = dmm1 + "."; This will assign the current value of dmm1 (which you still have to define, BTW) and add a period to it. If I may make a suggestion, perhaps it would be good for you to use "pseudo logic" to map out your code first, then replace the pseudo code with real JavaScript. For example, first map out what you want your script to do. get list field get first text field get second text field get third text field Loop through selections if selection is selected if first field is empty enter selection into first field else if first field is full but second field is empty enter selection into second field else if first and second fields are full but third is empty enter selection into third field else display error message Now you can replace the above "pseudo code" with actual JavaScript. I find this very helpful, personally, in keeping the "big picture" clear throughout the coding process. Does this help or is it more confusing? Mark Lauterbach Forms Designer Citizenship and Immigration Canada 613.957.2798 "Reason has always existed, just not always in a reasonable form." To change your subscription: http://www.pdfzone.com/discussions/lists-pdfforms.html
