Text String (Single Line)

Overview #

Provides a text box for data entry.

Field Type Parameters: #

  1. Length (optional) – Number of characters. Number of characters not bytes.
    • Default: 255
    • Min: 1
    • Max: 1024

Value Processing Parameters: #

Basic usage:

{{ FieldName }}

Usage with parameters:

{{ FieldName(Limit Output, Length, Clean Braces, Clean Quotes) }}
  1. Limit Output (optional) – Limits returning output text, first number of characters or first number of words.
    • (Default. Returns as it is)
    • chars – (Returns first number of characters from text that was trimmed, sanitized and HTML tags stripped.)
    • words – (Returns first number of words from text that was trimmed, sanitized and HTML tags stripped.)
    • firstimage – (Returns the link to a first image found in the text.)
  2. Length (optional) – Number of characters or words.
    • Default:
    • Min: 1
    • Max: 1024
  3. Clean Braces (optional) – Deletes all braces from the text. (i.e. to avoid Content Plugins running.)
    • (No – default)
    • true: Yes
  4. Clean Quotes (optional) – Deletes all quotes from the text.
    • (No – default)
    • true: Yes

Example:

{{ FieldName("chars",1,true,true) }}


Pure Value (Unprocessed): #

Example:

{{ FieldName.value }}


Edit Record Parameters: #

Basic usage:

{{ FieldName.edit }}

Usage with parameters:

{{ FieldName.edit(CSS Class, Attributes, Autocomplete) }}
  1. CSS Class (optional) – Name or names of CSS class(s).
  2. Attributes (optional) – Optional attributes like: disabled, onclick, onchange etc.
  3. Autocomplete (optional) – Generate autocomplete data list using table records
    • (No – default)
    • autocomplete: Yes

Example:

{{ FieldName.edit("my_CSS_class",onclick='alert(1);',"autocomplete") }}


What are your feelings

Leave a Reply

Updated on January 9, 2025