Joomla spacer Form Field Type

The spacer form field type provides a visual separator between field elements. It is purely a visual aid and no field value is stored.

XML Field Definition

<field type="spacer" name="myspacer" hr="true" />

Additional Parameters

label: (translatable) This is the text or title to use as a spacer.

description: (translatable) This is text that will be shown as a popover when the user clicks on the label.

hr: It is whether to display a horizontal rule (hr). If this attribute is 'true', the label and description attributes are ignored. The default value is false.

class: This is a CSS class name for the HTML form field.

You can also include HTML markup but it must be encoded. You cannot combine the hr and label attributes. To define a spacer with both a horizontal rule and a label, use an encoded <hr/> in the label attribute.