diff --git a/UPGRADE-2.7.md b/UPGRADE-2.7.md index 42b8349702f34..74c2791c63b08 100644 --- a/UPGRADE-2.7.md +++ b/UPGRADE-2.7.md @@ -144,6 +144,11 @@ Form 'Ignored' => Status::IGNORED, ), 'choices_as_values' => true, + // important if you rely on your option value attribute (e.g. for JavaScript) + // this will keep the same functionality as before + 'choice_value' => function ($choice) { + return $choice; + }, )); ```