Hi there,
The function call should be, for example
PHP Code:
0 =>
array (
'name' => 'state_c',
'studio' => 'visible',
'label' => 'LBL_STATE',
'displayParams' =>
array (
'javascript' => 'onchange="initData();"',
),
),
and the javascript included like:
PHP Code:
$viewdefs ['Opportunities'] =
array (
'EditView' =>
array (
'templateMeta' =>
array (
'form' =>
array (
'hidden' =>
array (
'customCode' => '<input type="hidden" name="consortium_c" value="{$fields.consortium_c.value}">',
),
'buttons' =>
array (
0 => 'SAVE',
1 => 'CANCEL',
),
),
'maxColumns' => '2',
'includes' =>
array (
0 =>
array (
'file' => 'include/javascript/yashvi_js/stateregion1.js',
),
),
Rgds
Andrew
Bookmarks