Hi, does anyone know how to add fields to Event Registrations?
In Studio, it does not appear on the list of modules
Filikin,
refer to developer guide for Sugar 6.5
http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_6.5/Extension_Framework/Extensions/Vardefs/
Create file custom/Extensions/modules/EventRegistrations/Ext/Vardefs/eventregistrations.vardefs.php
Add your fields there
//add field ‘yourfieldname’
$dictionary[‘EventRegistration’][‘fields’][‘yourfieldname’] = array(
‘name’ => ‘yourfieldname’,
‘vname’ => ‘LBL_YOURFIELDNAME’,
‘type’ => ‘varchar’,
‘len’ => 100
);
Add the label
Create file custom/Extensions/modules/EventRegistrations/Ext/Language/en_us.lang.php
$mod_strings[‘LBL_YOURFIELDNAME’] = ‘The label for your fieldname’;
Do a repair/rebuild after adding your files
Val
Thanks Val,
I came up with a much more complicated solution in the meantime – good to have the correct way.
Next is formula fields, I will try the documentation first before screaming for help.
Regards,
Eamon