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
This form type displays a text value without providing an interactive input to edit it. It is based on a hidden input so it could be changed programmatically, or used just to display data in a form.
Option | Type | Default value | Description |
---|---|---|---|
type | string |
hidden | Input type |
preview_class | string |
text-preview | Class to apply on the input |
prefix | string |
null | Prefix data to prepend to the value |
suffix | string |
null | Suffix data to append to the value |
$builder->add('fullname_and_email', TextPreviewType::class, [
'label' => false,
'block_prefix' => 'searched_customer_fullname_and_email',
])