Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 95831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T23:43:11+00:00 2026-05-10T23:43:11+00:00

We use a customized installation of SugarCRM and I need to make a change

  • 0

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).

I’ve tried adding this line to ‘modules/Contacts/metadata/editviewdefs.php’ and ‘modules/Contacts/metadata/quickcreatedefs.php’:

array ( 'name' => 'first_name', 'displayParams'=>array('required'=>true), ) 

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!

Update: Added ‘first_name’ and ‘salutation’ to the ‘required_fields’ array in ‘modules/Contacts/field_arrays.php’, did not help.

Update: This is on SugarCRM 5.1. This work is happening during the upgrade to 5.1.

Update: Added the following line to ‘modules/Contacts/vardefs.php’ the ’email_and_name1′ array, did not help.

'required' => 'true', 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T23:43:12+00:00Added an answer on May 10, 2026 at 11:43 pm

    I appear to have figured out a solution. I created an upgrade file in ‘custom/Extension/modules/Contacts/Ext/Vardefs’ called ‘custom.php’. The contents of the file are below:

    <?php $dictionary['Contact']['fields']['salutation']['required'] = true; $dictionary['Contact']['fields']['first_name']['required'] = true; ?> 

    After I did a ‘quick repair and rebuild’, the salutation and first name were now required. This works for me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using asp.net mvc 3, My problem is I need to use the customized
I am writting a customized component which need to use the little triangle icon
I have customized jqGrid's edit form to have some fields that use jQuery's DatePicker
I need to use a customized Periodic Task in Windows Phone 8. I have
I'm using Facebook Registration in my application. Is it possible to use customized layout
I implement notifications in my IOS app, and I use customized sounds. Everything works
I found it very hard to customize PDF invoice that Magento use. Not only
I use customized paths for my application based on Zend Framework (a.k.a. themes). The
I want to use a simple URL query parameter to display customized confirmation messages
My user interface makes use of customized Button s: They contain both an Image

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.