Thank you for your question. I understand you’d like to change the name of a custom field in SuiteCRM. Here’s a step-by-step guide to achieve this:
Step 1: Change the Vardefs File
Navigate to the extensions directory (custom/Extension/modules/some_module_name/Ext/Vardefs/).
Modify the some_field_name.php file with the new field name:
$dictionary["some_module_name"]["fields"]["new_field_name_c"] = [
'name' => 'new_field_name_c',
'vname' => 'LBL_SOME_FIELD_NAME',
'type' => 'enum',
'options' => 'some_list',
'len' => 255,
];
// Remove the old field definition
unset($dictionary["some_module_name"]["fields"]["some_field_name_c"]);
This step ensures that SuiteCRM recognizes the change as a renaming.
Step 2: Run a Repair and Rebuild
After making the changes, run a “Repair and Rebuild” from the Admin panel in SuiteCRM. This will execute the necessary SQL queries to reflect the field name change in the database.
Step 3: Clear the Cache
To ensure that SuiteCRM picks up the changes, clear the cache. You can do this manually by deleting the contents of the cache/ directory in the SuiteCRM installation or through the Admin panel.
After completing these steps, the field should be successfully renamed.
I hope this helps. If you have more questions, feel free to ask.