Hi,
I've chaned the opportunity module (I added some custom fields and edited the layout, EditView.html) and the Required fields - verify is not working anymore. This means I can actually save my opportunities even without puting a name...
In opportunities/field_arrays.php (where I didn't change anything) I have:
'required_fields' => Array('name'=>1, 'date_closed'=>2, 'amount'=>3, 'sales_stage'=>4, 'account_name'=>5),
In opportunites/forms.php (where I didn't change anything) I have:
...
function get_validate_record_js () {
}
/**
* Create HTML form to enter a new record with the minimum necessary fields.
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
*/
function get_new_record_form () {
require_once('modules/Opportunities/OpportunityFormBase.php');
$oppForm = new OpportunityFormBase();
return $oppForm->getForm('');
}
?>
Attached is my EditView.html file.
Btw, in the DB in fields_meta_data are defined the custom fields. Where are the other fields defined? Thanks for the help!!
Alan


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks