Switch Statement – assign value to a text field Adobe liveCycle

Report
Question

Please briefly explain why you feel this question should be reported .

Report
Cancel

I am trying to assign text values by using a switch statement.  The user would select an office and based off of that selection text would be assigned to text box fields.  I’m able to get the values to a combo box.  Example:

switch (this.rawValue){
case “2”:
//test cboText
cboTest.addItem(“address Office”);
//end test
form1.txtAdd2.value = “(address)”;
txtAdd3.addItem (“address”);
txtAdd4.addItem (“Phone: “);
txtAdd5.addItem (“Fax: “);
break;
case “3”:
txtAdd1.addItem (“Charleston Office”);
txtAdd1.addItem(“address”);
txtAdd2.addItem (“address”);
txtAdd3.addItem (“Phone: “);
txtAdd4.addItem (“Fax:”);
break;
}

Thanks for the help!

0
JavaScript 8 months 0 Answer 397 views 0

About bwalker

Leave an answer

Browse

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>