PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/
__________________________________________________________________
Thanks Mark
I did change the script as shown below.
I do get an error that says: ReferenceError: oFromSelect is not defined.
Does that mean that telling me that I will need to define all 83 values from
the sponsor field? Sponsor is the list box from which users can choose up
to 3 values
Kenn
var fieldOne = "sponsor.";
for (sponsor = 0; i < oFromSelect.options.length; i++) {
if (oFromSelect.options[i].selected) {
var selection = "dmm1 && .";
if (dmm1.value == "") dmm1.value = selection;
else if (dmm1.value != "" && dmm2.value == "") dmm2 = selection;
else if (dmm1.value != "" && dmm2.value != "" && dmm3.value == "") dmm3
= selection;
else app.alert("All fields are full");
}
}
----- Original Message -----
From: "Lauterbach.Mark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 30, 2004 12:39 PM
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, Ken
OH, Syntax Error Overload!!! ;-)
Without addressing the functionality of this script, here's my clean up:
var fieldOne = "sponsor.";
for (fieldOne = 0; i < oFromSelect.options.length; i++) {
if (oFromSelect.options[i].selected) {
if (dmm1.value == "") dmm1 = selection;
else if (dmm1.value != "" && dmm2.value == "") dmm2 = selection;
else if (dmm1.value != "" && dmm2.value != "" && dmm3.value == "") dmm3
= selection;
else app.alert("All fields are full");
}
}
Now some things I see in the script that may cause problems...
1.) you're using "fieldOne" twice in different contexts (first you say
it = "sponsor.", then in your loop you use it as your incrementing
value)
2.) you may have to define the variable "selection"
3.) you probably mean dmm1.value = selection; (not dmm1 = selection;)
4.) you'll probably have to "get" the text boxes using
this.getField('dmmX');
I hope that helps.
Mark
To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfforms.html