From 3439ea7a32f64acba0171bd3db1c283361655e27 Mon Sep 17 00:00:00 2001 From: Bernhard Schussek Date: Sun, 5 May 2013 20:27:35 +0200 Subject: [PATCH] Documented that "empty_value" can be used for expanded choice fields --- reference/forms/types/options/empty_value.rst.inc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/reference/forms/types/options/empty_value.rst.inc b/reference/forms/types/options/empty_value.rst.inc index c94183384d8..0bc549dea08 100644 --- a/reference/forms/types/options/empty_value.rst.inc +++ b/reference/forms/types/options/empty_value.rst.inc @@ -3,9 +3,14 @@ empty_value **type**: ``string`` or ``Boolean`` +.. versionadded:: 2.3 + + Since Symfony 2.3, empty values are also supported if the ``expanded`` + option is set to true. + This option determines whether or not a special "empty" option (e.g. "Choose an option") -will appear at the top of a select widget. This option only applies if both -the ``expanded`` and ``multiple`` options are set to false. +will appear at the top of a select widget. This option only applies if the +the ``multiple`` option is set to false. * Add an empty value with "Choose an option" as the text:: @@ -26,4 +31,4 @@ is false:: // a blank (with no text) option will be added $builder->add('states', 'choice', array( 'required' => false, - )); \ No newline at end of file + )); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy