title: Sugarcrm, writing custom code while saving the record
body: <p>I am customizing the SugarCRM. At some point I need to store some custom values to the database while user creates the record. I tried to use Triggers, but it didn't fulfill the requirement. So I need to write that in PHP code.</p>
  
  <p>My question is, where to write this code.</p>