How to manually create dependent dropdowns

The documentation section Manually Creating Custom Fields provides a good description of creating fields using the module loader, including dropdowns. But how can I do the same thing for dependent dropdowns, where I need to specify a parent dropdown and visibility in the $fields array?

Parents
  • Hi Yury Voloshin,

    If I were to pursue a project like this, I would make a dependent dropdown via Studio, investigate the impact on the custom vardef for that field to determine the code that defines the dependency, and then plug that code into my best guess of the appropriate part of the guidance in the article you linked.

    For those hosted on Sugar Cloud and without direct file system access, they can still download the custom directory from that instance using the Admin > Diagnostic Tool.

    I hope this helps!

Reply
  • Hi Yury Voloshin,

    If I were to pursue a project like this, I would make a dependent dropdown via Studio, investigate the impact on the custom vardef for that field to determine the code that defines the dependency, and then plug that code into my best guess of the appropriate part of the guidance in the article you linked.

    For those hosted on Sugar Cloud and without direct file system access, they can still download the custom directory from that instance using the Admin > Diagnostic Tool.

    I hope this helps!

Children