HomeDocumentationTutorialsIncluding an RGB color code field in my module

Including an RGB color code field in my module

You can add a RGB color code field to your form by defining its properties and also including the field in your list of add or edit fields.

 

Here's a sample code to include a RGB color code field to your form;  

 

PHP
 
$objConfig->rgbColor('field_name', 'field_label', $required = 0)