This field is like a text field with the type of url.

Example XML field definition:

<field 
name="mytextvalue"
type="url"
label="Enter URL"
default="http://www.example.com"
description=""
size="10" />

Parameters

Mandatory Parameters

  1. type must be url.
  2. name is the unique name of the field.
  3. label (translatable) is the descriptive title of the field.

Optional Parameters

  • size is the width of the text box in characters.

  • maxlength limits the number of characters that may be entered.

  • default (not translatable) is the default value.

  • description (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.

  • class is a CSS class name for the HTML form field. If omitted this will default to 'text_area'.

  • readonly - The field cannot be changed and will automatically inherit the default value.

  • disabled - The field cannot be changed and will automatically inherit the default value - it will also not submit.

  • required - The field must be filled before submitting the form.

  • filter - Allow the system to save certain html tags or raw data.

  • validate - Makes a validation

  • relative - Set to true for relative URLs

  • hint - The text displayed in the html placeholder element, usually a lighter coloured hint displayed inside a blank field