In your editviewdefs.php:
PHP Code:
'includes' =>
array (
0 =>
array (
'file' => 'modules/Cases/Case.js',
),
1 =>
array (
'file' => 'custom/modules/Cases/testing.js', //you include testing.js file that you're going to create
),
...
in editviewdefs.php (you search your relate field):
PHP Code:
....
'panels' =>
array (
'lbl_cases_information' =>
array (
0 =>
......ANOTHER FIELD
....
1 =>
array (
'name' => 'relate_field',
'label' => 'LBL_RELATE_FIELD',
'displayParams' => array('field' => array(
'onBlur' => 'testing(THE OTHER FIELD)', //you call your javascript function passing the other //field you want to modify its value
)
),
your javascript function:
Code:
function testing(field) {
field.value = "This is other value of your field";
alert("Value changed");
} Good luck
Daniel
Bookmarks