.. include:: ../../Includes.txt .. _fields-string: String ====== .. figure:: ../../Images/FieldTypes/String.svg :alt: String :class: float-left :width: 64px A simple input field for a short line of text. .. rst-class:: clear-both .. code-block:: php 'type' => 'input' .. figure:: ../../Images/FieldTypes/StringPreview.png :alt: String field :class: with-border String field Available TCA options --------------------- * :ref:`config.default ` * :ref:`config.placeholder ` * :ref:`config.size ` * :ref:`config.min ` (only for TYPO3 v12 or higher) * :ref:`config.max ` * :ref:`config.is_in ` * :ref:`config.eval.required ` * :ref:`config.eval.trim ` * :ref:`config.eval.alpha ` * :ref:`config.eval.num ` * :ref:`config.eval.alphanum ` * :ref:`config.eval.alphanum_x ` * :ref:`config.eval.domainname ` * :ref:`config.eval.email ` (only for TYPO3 v11 or lower) * :ref:`config.eval.lower ` * :ref:`config.eval.upper ` * :ref:`config.eval.unique ` * :ref:`config.eval.uniqueInPid ` * :ref:`config.eval.nospace ` * :ref:`l10n_mode ` * :ref:`config.behaviour.allowLanguageSynchronization ` * :ref:`config.eval.null ` * :ref:`config.mode ` * :ref:`config.eval.md5 ` * :ref:`config.eval.password ` * :ref:`config.autocomplete ` See a complete overview of String TCA options in the :ref:`official documentation `.