Textbox

    Alias: Umbraco.Textbox

    Returns: String

    Textbox is an HTML input control for text. It can be configured to have a fixed character limit. The default maximum amount of characters is 500 unless it's specifically changed to a lower amount.

    Data Type Definition Example

    Without a character limit

    Textbox Data Type Definition

    Settings

    Content Example

    Without a character limit

    Textbox Content Example

    With a character limit

    Textbox Content Example Without a Character Limit

    MVC View Example

    @{
        if (Model.HasValue("pageTitle")){
            <p>@(Model.Value("pageTitle"))</p>
        }
    }