Opportunities - Account Name - Turning required off - HELP!


I’m hopeless at playing with suitecrm, and i want to run off and cry in a sulking heap :slight_smile:

OK. So in the Opportunities Module. It has Account Name as a required field, so when you create an opportunity it has to be linked to an account.

Well I don’t want this. So with my limited understanding I thought it through and as I cannot see Account Name as a field in studio. I decided ahh ok it’s simple it’s in the vardefs.php file for Opportunities and in there it must have requires set to true… All i have to do is change that to false… Copy it over to custom so both the live and the custom version both have false in, do a quick rebuild and hey presto… .it will no longer say this is a required field.

So I have vardefs.php in both places, both with the correct owner and group for our system :slight_smile: Run the repair and NOPE IT STILL SAYS ACCOUNT NAME IS A REQUIRED FIELD Arrrrrrgh!!! Just for once I was giving myself a high five, thinking YES I am starting to understand it… But, NOPE!! What else should i be doing to stop Account Name in opportunities from being a required field? Please someone call me an idiot by all means but tell me where i’m going wrong :slight_smile:

Below is the text
‘account_name’ =>
array (
‘name’ => ‘account_name’,
‘rname’ => ‘name’,
‘id_name’ => ‘account_id’,
‘vname’ => ‘LBL_ACCOUNT_NAME’,
‘type’ => ‘relate’,
‘table’ => ‘accounts’,
‘isnull’ => ‘true’,
‘module’ => ‘Accounts’,
‘dbType’ => ‘varchar’,
‘len’ => ‘255’,
‘unified_search’ => true,
‘required’ => false,
‘importable’ => ‘required’,
‘required’ => false,


You have understand but this is the exempt :slight_smile:

you can turn globaly in config.php (config_override.php)

 $sugar_config['require_accounts'] = false;
1 Like

HAHA! OK. I cannot get my head around WHY you would need to have to edit another field but apparently there is somewhere else you need to edit as well, as per this link below.


Thank you!! I spotted it and I think it was you that helped the other person out as well :slight_smile:

I didn’t see your post and replied myself below linking to where you mentioned it for the other person :slight_smile: