Thu Dec 16, 2010 11:43 pm
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);
}
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
Powered by phpBB © phpBB Group.