Hi Jim,
For get the Client Name field in EditView you can put a code in your Custom Module Module:
In modules/<NAME_OF_MODULE>/views/view.edit.php
PHP Code:
<?php
require_once('include/MVC/View/views/view.edit.php');
class NAME_OF_MODULEViewEdit extends ViewEdit{
function NAME_OF_MODULEViewEdit() {
parent::SugarView();
}
function display(){
$this->ev->process();
if (empty($this->ev->focus->id) && isset($_REQUEST['parent_type']) && ($_REQUEST['parent_type'] == 'Client' && isset($_REQUEST['parent_name']) && isset($_REQUEST['parent_id']))) {
$this->ev->fieldDefs['client_name']['value'] = $_REQUEST['parent_name'];
$this->ev->fieldDefs['client_id']['value'] = $_REQUEST['parent_id'];
}
echo $this->ev->display();
}
}
?>
And the width take a look in /modules/<NAME_OF_MODULE>/metadata/subpanels/default.php
Bookmarks