- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Managed to finally figure out a way to get this to work basing the code off of some code I found on how to have a dropdown selection fill in text fields. Thought I would share my solution, so I have pasted the code below. Can't wait to get my form completed and start using it. It's going to save me so much time by not having to enter the same information over and over and over. Thanks for your help, it helped steer me in the right direction to finding the solution I needed.
----- form1.#subform[0].DropDownList1::change: - (JavaScript, client) ------------------------------
DropDownList2.clearItems();
var sNewSel = this.boundItem(xfa.event.newText);
switch (sNewSel)
{
case "Doctor 1":
DropDownList2.addItem("BCBS")
DropDownList2.addItem("Aetna")
DropDownList2.addItem("Cigna")
DropDownList2.addItem("UHC")
break;
case "Doctor 2":
DropDownList2.addItem("BCBS")
DropDownList2.addItem("Aetna")
DropDownList2.addItem("Cigna")
DropDownList2.addItem("UHC")
break;
case "Doctor 3":
DropDownList2.addItem("BCBS")
DropDownList2.addItem("Aetna")
DropDownList2.addItem("Cigna")
DropDownList2.addItem("UHC")
break;
case "Doctor 4":
DropDownList2.addItem("BCBS")
DropDownList2.addItem("Aetna")
DropDownList2.addItem("Cigna")
DropDownList2.addItem("UHC")
break;
default:
break;
}
Views
Replies
Total Likes