title: SugarCRM: How do I make "first name" and "salutation" required fields on the "Convert Lead to Contact" form?
body: <p>We use a customized installation of SugarCRM and I need to make a change to the "Convert Lead to Contact" form. On the form, only "last name" is marked as required, but if the user does not enter a salutation or first name, Sugar will throw an SQL error on the insert (because salutation and first name are required fields for contacts). </p>
  
  <p>I've tried adding this line to "modules/Contacts/metadata/editviewdefs.php" and "modules/Contacts/metadata/quickcreatedefs.php":</p>
  
  <pre><code>array (
  'name' =&gt; 'first_name',
  'displayParams'=&gt;array('required'=&gt;true),
  )
  </code></pre>
  
  <p>I'm trying other modifications but I can't find anything online yet on this exact problem. I will update this question with my findings. Thanks!</p>
  
  <p>Update: Added "first_name" and "salutation" to the 'required_fields' array in "modules/Contacts/field_arrays.php", did not help. </p>
  
  <p>Update: This is on SugarCRM 5.1. This work is happening during the upgrade to 5.1. </p>
  
  <p>Update: Added the following line to "modules/Contacts/vardefs.php" the "email_and_name1" array, did not help.</p>
  
  <pre><code>'required' =&gt; 'true',
  </code></pre>