Total members 11889 |It is currently Fri Mar 29, 2024 11:13 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





I have two combo boxes on a pdf form the first controls 4 text boxes and puts the correct information into the the text boxes based on the combo box choice.the first combobox works perfect. I duplicated the code but choose a different names for the script on the second combo box. The second combo box work but nno data is shown when i select a choice for the second combo box but the first one works flawlessly.

Here is the code for the second combobox

Code:
function SetFieldVal()
{
var step2={
Phil_Tremper:{Desaddr:"PO Box 515",DesTelephone:"845-744-4437",DesCity:"PineBush NY",Deszip:"12566"},
Robert_Dykeman:{Desaddr:"1865 Rt. 23",DesTelephone:"518-325-8888",DesCity:"Craryville NY",Deszip:"12521"},
Peter_Kowal:{Desaddr:"4 Court Helaine",DesTelephone:"845-856-1402",DesCity:" Port Jervis NY",Deszip:"12521"}};
function SetFieldVal(cstep2)
{
this.getField("Desaddr").value=step2[cstep2].Desaddr;
this.getField("DesTelephone").value=step2[cstep2].DesTelephone;
this.getField("DesCity").value=step2[cstep2].DesCity;
this.getField("Deszip").value=step2[cstep2].Deszip;
}

}
The combo box name is step2

there is one other piece of code in the keystroke section of the combo box

it is this


if(event.willCommit)
{
  if(event.value==" ")
     this.resetForm(["Desaddr","DesTelephone","DesCity","Deszip"]);
   else
     SetFieldVal(event.value);
}





Author:
Newbie
User avatar Posts: 1
Have thanks: 0 time
Post new topic Reply to topic  [ 1 post ] 

  Related Posts  to : need help with java script in a pdf
 Java script time parameter     -  
 How can I call a C program in a Shell Script from Java     -  
 How to create a file in java script using FireFox     -  
 Dynamic Frame-sets with java script protocols     -  
 Can anyone suggest some script?     -  
 Script ingoring lines     -  
 Send Email from a PHP Script Example     -  
 script for including files     -  
 A PHP Number Guessing Script     -  
 Questions: Perl Script. PHP.     -  



cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com