The {text_field} tag pair will output the contents of the text field element.

{text_field}
   {value}
{/text_field}

You can use the following parameters with your {text_field} tag:

char_limit=

{text_field char_limit="5"}
   {value}
{/text_field}

This parameter shortens the value being displayed.

The following single variables are available within your {text_field} tag pair:

{value}

Displays the contents of {text_field} element.

{element_name}

Sometimes, you might want to use several text field elements, each with a different style. The {element_name} tag will help you to determine which text field element is being displayed.

For example, you can add a regular Text Field and an Inverted Text Field in the field settings. In order to apply a different style on the Inverted Text Field element, use the following code:

{text_field}
	{if element_name=="Inverted Text Field"}
		<div class="inverted">{value}</div>
	{if:else}
		{value}
	{/if}
{/text_field}