Hello, I have a very low level knowledge of coding. I have a code that works inside of Adobe Live Cycle (for a PDF). The formula pre-populates feils based on the selection in the first feild. What I have created below works perfectly, but I do not want to write a string of code for every number from 1-200. I know there is a way to fix this, I just do not know how to code it. Can anyone help and give me the exact code I would need to type to create this and how I place it.
if (this.rawValue == 0)
{
this.parent.Billing_State.selectedIndex = 0;
this.parent.Rep_Code.selectedIndex = 0;
this.parent.SD_Account.selectedIndex = 0;
}
if (this.rawValue == 1)
{
this.parent.Billing_State.selectedIndex = 1;
this.parent.Rep_Code.selectedIndex = 1;
this.parent.SD_Account.selectedIndex = 1;
}
if (this.rawValue == 2)
{
this.parent.Billing_State.selectedIndex = 2;
this.parent.Rep_Code.selectedIndex = 2;
this.parent.SD_Account.selectedIndex = 2;
}
if (this.rawValue == 3)
{
this.parent.Billing_State.selectedIndex = 3;
this.parent.Rep_Code.selectedIndex = 3;
this.parent.SD_Account.selectedIndex = 3;
}