From fae68288d8111a747527c963d0eeff0402f75973 Mon Sep 17 00:00:00 2001 From: BahmanMD Date: Fri, 12 Nov 2021 11:22:25 +0330 Subject: [PATCH] Eliminate duplicate text --- reference/forms/types/text.rst | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/reference/forms/types/text.rst b/reference/forms/types/text.rst index c7002a79a08..87db07aee0a 100644 --- a/reference/forms/types/text.rst +++ b/reference/forms/types/text.rst @@ -28,15 +28,12 @@ These options inherit from the :doc:`FormType `: .. include:: /reference/forms/types/options/disabled.rst.inc .. include:: /reference/forms/types/options/empty_data.rst.inc - :end-before: DEFAULT_PLACEHOLDER + :start-after: DEFAULT_PLACEHOLDER From an HTTP perspective, submitted data is always a string or an array of strings. So by default, the form will treat any empty string as null. If you prefer to get an empty string, explicitly set the ``empty_data`` option to an empty string. -.. include:: /reference/forms/types/options/empty_data.rst.inc - :start-after: DEFAULT_PLACEHOLDER - .. include:: /reference/forms/types/options/error_bubbling.rst.inc .. include:: /reference/forms/types/options/error_mapping.rst.inc