Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Change Type of field to correct one
  • Loading branch information
Euugi authored and javiereguiluz committed Jun 5, 2024
commit a6a828e6f9438df3169ea8200ffb00b76dbf1a8c
4 changes: 2 additions & 2 deletions reference/forms/types/time.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ If your widget option is set to ``choice``, then this field will be represented
as a series of ``select`` boxes. When the placeholder value is a string,
it will be used as the **blank value** of all select boxes::

$builder->add('startTime', 'time', [
$builder->add('startTime', TimeType::class, [
'placeholder' => 'Select a value',
]);

Alternatively, you can use an array that configures different placeholder
values for the hour, minute and second fields::

$builder->add('startTime', 'time', [
$builder->add('startTime', TimeType::class, [
'placeholder' => [
'hour' => 'Hour', 'minute' => 'Minute', 'second' => 'Second',
],
Expand Down