Skip to main content

4.5 - Adding your own fields

The Add a field block covers everyday needs. For anything else, Formulus accepts any Joomla custom field, including a type it does not offer itself: colour, editor, user, or one from a fields plugin you installed.

Creating the field

  1. Formulus → Fields → New.
  2. Choose the type, give a title and a label.
  3. In the right-hand column, Category: pick the one named after the form. That is what attaches the field to this form and no other.
  4. Field group: pick the group named after the model ("Quote", "Contact"...), to keep it with the others.
  5. Save, then reopen the form: the field is at the end of the list, ready to be placed in its row.

What categories and groups are for

Each form has its own category, created and named by Formulus, which you will not see anywhere else. A field belongs to the form whose category it carries. Two forms therefore never share a field by accident: changing one does not touch the other, and copying a form creates new fields.

Each model has its own group. The first time a form created from a model is saved, Formulus creates the "Quote" group (or "Contact"...) and puts in it the fields that had none. In Formulus → Fields, the group filter then shows a model's fields at a glance. A group you chose yourself for a field is never changed.

A type Formulus does not know

In the field's line, the type list then shows "Other: color" (or the type's name), and keeps it. Saving the form does not change the field's type.

The field shows on the site with the input Joomla gives it; its settings are made in its own screen, through the link in the Settings block.

Removing a field

The − of its line removes it from the form. If it belonged to this form only, it goes to the fields trash, from which Joomla can still restore it; if it served elsewhere, it is only detached. Formulus says so after saving.

Up to date for Formulus 1.0.237.