Call function on default button

Hello,

how can i call user define function in predefined button?

i want to call some javascript functions, when i click on default “save” button in editview.

Thanks,
karthi

Hi karthi,

You can override edit view as the following example…

<?php if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); require_once('include/MVC/View/views/view.edit.php'); class [Module]ViewEdit extends ViewEdit { function display() { echo ""; parent::display(); } } ?>

Try this… and share your view… :slight_smile: