Notice: You are browsing the documentation for PrestaShop 9, which is currently in development.

You might want to read the documentation for the current version, PrestaShop 8. Read the current version of this page


This form class is responsible for creating a color picker field

Type options

Option Type Default value Description

Code example

$builder->add('color', ColorPickerType::class, [
    'required' => true,

Preview example

ColorPickerType rendered in form example