Warning: You are browsing the documentation for PrestaShop 8, which is outdated.

You might want to read an updated version of this page for the current version, PrestaShop 9. Read the updated version of this page

Learn how to update to the latest version.

ColorPickerType

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