I'm looking to do the same thing.
I have a series of dropdowns that depend upon one another in the Cases Module
Case Category
Case Sub-Category 1
Case Sub-Category 2
Case Sub-Category 3
When a user selects a value from the Case Category, it is to select a list of values from Case Sub-Category 1, and so-on.
Here's my view.edit.php
PHP Code:
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
require_once('include/MVC/View/views/view.edit.php');
class CasesViewEdit extends ViewEdit {
private $manager;
function init($bean = null, $view_object_map = array()) {
parent::init($bean, $view_object_map);
require_once('custom/include/utils/DevToolKitManager.php');
$this->manager = new DevToolKitManager($this);
}
function display() {
$this->manager->display();
$this->ev->process();
echo $this->ev->display();
}
function process() {
parent::process();
$this->manager->process();
}
}
?>
Here's my update_dropdown_field_defs.php. Just testing out the Case Category, to Case Sub Category 1 for now.
PHP Code:
<?php
$update_dropdown_field_defs = array(
'case_category_c' => array(
'' => array(
'case_subcategory1_c' => 'case_subcategory1_list',
),
'Bus Stop' => array(
'case_subcategory1_c' => 'subcategory1_BUSSTOP_list',
),
'Routing' => array(
'case_subcategory1_c' => 'subcategory1_ROUTING_list',
),
'Safety' => array(
'case_subcategory1_c' => 'subcategory1_SAFETY_list',
),
),
);
?>
But I don't see any changes on the front-end. The dropdowns don't change.
Any ideas?
Thanks in advance.
Emilio
Bookmarks