From 1ef4aeab403f7fb74c0b9b11fde854fd03afc40c Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Tue, 7 Jul 2015 21:06:57 +0200 Subject: Fixed #25078 -- Added support for disabled form fields Thanks Keryn Knight and Tim Graham for the reviews. --- docs/ref/forms/fields.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'docs/ref/forms') diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt index c4a40021d0..776ef873ad 100644 --- a/docs/ref/forms/fields.txt +++ b/docs/ref/forms/fields.txt @@ -299,6 +299,17 @@ as the rendered output. See the :ref:`format localization ` documentation for more information. +``disabled`` +~~~~~~~~~~~~ + +.. attribute:: Field.disabled + +.. versionadded:: 1.9 + +The ``disabled`` boolean argument, when set to ``True``, disables a form field +using the ``disabled`` HTML attribute so that it won't be editable by users. +Even if a user tampers with the field's value submitted to the server, it will +be ignored in favor of the value from the form's initial data. Checking if the field data has changed -------------------------------------- -- cgit v1.3