Hello,
I have added customized fields in sidecreateview. Now i want to add javascript validation for that fields.
My code is like this.....
'javascript' => '<script type="text/javascript" src="custom/modules/opportunities/metadata/side_options.js"></script>',
///This way i include the js file.
array (
array('name'=>'opportunity_qty_c',
'displayParams' =>
array (
'required' => true,'javascript'=>'onchange=calculate();',
),),
),
///This is my customized field. In this i add onchnage event, but it is not working
side_options.js
function calculate()
{
alert("calculation");
}
/// this is my .js file where i put my function..
.
Thank You in advance.


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks