I'm here to play around with suitecrm, and I want to write a script that modifies a bit the behavior of the form. Text content of the script (FULL CONTENT of the /custom/modules/Opportunities/js/customscript.js
file):
alert('hello!');
Next, I copied / /modules/Opportunities/metadata/editviewdefs.php
to /custom/modules/Opportunities/metadata/editviewdefs.php
, and changed something in it:
$viewdefs['Opportunities']['EditView'] = array( 'templateMeta' => array('maxColumns' => '2', 'widths' => array( array('label' => '10', 'field' => '30'), array('label' => '10', 'field' => '30') ), 'javascript' => '{$PROBABILITY_SCRIPT}', 'includes' => array( 0 => array('file' => '/custom/modules/Opportunities/js/customscript.js'), ), ), ...
Maybe it's in the cache, but it's still not working. Perhaps I’m missing something ... New =)
PS Maybe I’m not correcting the files at all, because I need a form that appears when creating a transaction ...