[Vtigercrm-developers] Changing Lead and contact required fields

Adam Heinz amh at metricwise.net
Wed Jun 6 06:39:29 PDT 2012


On Tue, Jun 5, 2012 at 8:51 PM, Mark Kostner
<mark at sellingonlinemadesimple.com.au> wrote:
> Is it possible to change the default required field in leads and contacts
> from last name to first name?

UPDATE vtiger_field SET typeofdata = 'V~M' WHERE fieldname = 'firstname';
UPDATE vtiger_field SET typeofdata = 'V~O' WHERE fieldname = 'lastname';

> Obviously technically is easy to do, but would that “break” any other
> functionality?

The descriptions of the firstname (55) and lastname (255) ui types
suggest there is some additional logic in play here.

https://wiki.vtiger.com/index.php/UI_Types
55	 This uitype provides a combination of Salutation and Firstname.
The Salutation field is a dropdown while the Firstname field is a
single line textfield which changes its colour on selection.
255	 In leads and contacts module, last name is mandatory but first
name is not. So when first name is disabled for the profile, the
salutation gets handled and added for the last name using this uitype.



More information about the vtigercrm-developers mailing list