05-17-2017, 11:24 AM
I'm updating one of my modules, and I'd like to add some values to one of the picklists. Is that as simple as:
Or is there a special method for this?
PHP Code:
// Setup the field
$invoicePaymentCondField = new Vtiger_Field();
$invoicePaymentCondField->name = 'existing_name';
$invoicePaymentCondField->label = 'Label';
$invoicePaymentCondField->table = 'existing_table';
$invoicePaymentCondField->column = 'existing column';
$invoicePaymentCondField->columntype = 'VARCHAR(100)';
$invoicePaymentCondField->uitype = 16;
$invoicePaymentCondField->typeofdata = 'V~M';
$invoiceDescriptionBlock->addField($invoicePaymentCondField);
$invoicePaymentCondField->setPicklistValues( array('Existing values with new values') );
Or is there a special method for this?