How to create drop down list to trigger checkboxs to select from using Adobe Pro
Dropdown List to trigger checkboxs to appear
Hello all,
Total noob here
Thank you in advance for any help you can provide!
I have a dropdown field labled "Departments"
Within the dropdown list I have the options:
• HR
• Legal
• Accounting
If user selects HR, Legal, or Accounting, I need to have a few checkboxs to auto apper base on the selected department .
If user selects HR, I need 3 checkboxs to appear so the user can select one, two or all three
If users selects Legal I need 5 checkboxs to appear so the can select all of just a few.
Can someone provide me with some steps by step of what I need to do you get to where I need to enter the script codes and what it should look like. I found this on another site but have no idea where to put it
if(event.willCommit)
{
switch(event.value)
{
case "Checking":
this.getField("somecheckbox").value = "Yes";
break;
case "Savings":
<.. do something .. >
break;
case "CD":
<.. do something .. >
break;
case "IRA":
<.. do something .. >
break;
case "Safe Deposit":
<.. do something .. >
break;
}
}
