No announcement yet.

Make a dependent drop down required only if populated

  • Filter
  • Time
  • Show
Clear All
new posts

  • Make a dependent drop down required only if populated

    I'm wanting to add/remove a requirement to a select field only if it's populated due to the option selected in another drop down menu. Hiding/showing won't do the trick. It needs to be required/not required based on whether there's anything there.

    The main select is Projects, dependent select is Categories. If the Project chosen produces a list of Categories, then I want the Category select to be required. If not, then it will NOT be required.

    Any ideas, anyone?

  • #2
    In the onvalidate event you can check if the data is selected properly. To populate categories depending on projects you need to go to the projects select field, scroll down to ajax events and select categories to be refreshed if the project changes.
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development /


    • #3
      10 months later....thanks, aducom! Actually, I was aware of this but had some other issues to work out. Then got distracted and finally came back to this. Worked it all out.