Skip to content

Commit b7ce7f0

Browse files
committed
Document DynamicForm install
1 parent b833f10 commit b7ce7f0

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

ux.symfony.com/src/Form/MealPlannerForm.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ class MealPlannerForm extends AbstractType
2626
{
2727
public function buildForm(FormBuilderInterface $builder, array $options): void
2828
{
29+
/**
30+
* Install DynamicFormBuilder:.
31+
*
32+
* composer require symfonycasts/dynamic-forms
33+
*/
2934
$builder = new DynamicFormBuilder($builder);
3035

3136
$builder

ux.symfony.com/src/Service/LiveDemoRepository.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,8 @@ public function findAll(): array
5252
description: 'After selecting the first field, automatically reload the options for a second field.',
5353
route: 'app_demo_live_component_dependent_form_fields',
5454
longDescription: <<<EOF
55-
Say goodbye to the hassle of dependent form fields with Live Components.
56-
<br>
57-
Whip up a <a href="https://symfony.com/doc/current/form/dynamic_form_modification.html#form-events-submitted-data">form with dynamic events</a> and then head out for a well-deserved lunch.
55+
Unleash the power of form events, thanks to <a href="/live-component"><code>LiveComponent</code></a>
56+
and <a href="https://github.com/SymfonyCasts/dynamic-forms"><code>DynamicForms</code></a>.
5857
EOF
5958
),
6059
new LiveDemo(

0 commit comments

Comments
 (0)