Manage custom fields

What custom fields do

Custom fields add donor information or instructions to the donor-information section of a Joom Donation form. They are useful when the standard donor details do not collect everything needed for a campaign. Published fields are rendered in their ordering, subject to the donor's access level and the field's campaign assignment.

Open Joom Donation → Custom Fields in the Joomla administrator. The list includes the field's internal Name, donor-facing Title, Campaign, Field Type, Core, Required, Access, Published status, and ID. Submitted values are saved with the donor record. Administrators can review them in the donor record and in donor exports where the relevant field is included.

Core Fields are created by the installation and are part of the standard donor form. The current installation data creates these fields:

Core field Initial status
First Name Published and required
Last Name Published and required
Organization Published and required
Address Published and required
Address 2 Unpublished and optional
City Published and required
Zip Published and required
Country Published and required
State Published and required
Phone Published and required
Fax Unpublished and optional
Email Published and required
Comment Published and required

The first_name and email core fields are protected by the administrator code: their field type, Published status, validation rules, and Required status cannot be changed, and they cannot be deleted. Other core fields are not protected by those specific restrictions, but their initial status is only the installation default shown above. A field that is not core is a custom field.

Manage existing fields

  1. Go to Joom Donation → Custom Fields.
  2. Use the search box or Filter Options to narrow the list by campaign, field type, required status, core status, or Published status.
  3. Click a field's name to edit it. Change its title, description, display settings, validation, access level, or other available properties, then save.
  4. Use the Published control to enable or disable a field. Use the Required control to change whether a non-protected field must be completed.
  5. Select a field and use the toolbar's delete action when deletion is allowed. Deleting a non-protected field also deletes its rows from the custom-field value table; do not assume that old donor values remain available after deletion.

To reorder fields, click the ordering header so that the list is ordered by Ordering, then drag the rows into the desired sequence. The drag-and-drop ordering is available when the list is using the ordering column; filters and pagination can limit which rows are visible while you reorder.

Create a custom field

  1. Open Joom Donation → Custom Fields and click New.
  2. If campaign-specific fields are enabled in the component configuration, choose one or more campaigns in Campaign. A new field is created for each selected campaign. Leave the selection empty only when you have confirmed the installation's campaign configuration and want the field's campaign ID to remain 0; do not treat an empty selection as an unconditional “all forms” setting without checking the frontend flow you use.
  3. Enter an internal Name. Use only a-z, A-Z, 0-9, and _; do not use spaces or special characters. The name is the stored key. It is not the text shown to donors.
  4. Enter the donor-facing Title, and optionally add a Description. The title is the label or heading displayed on the form.
  5. Select a Field Type and configure the settings shown for that type.
  6. Set Required only when the donor must provide or select a value. Configure Published, Access, and any display settings needed for the form.
  7. Click Save & Close, then open the relevant frontend donation form and verify the result.

The edit screen can also show a Translation tab when multilingual fields are enabled. That tab provides translated titles, descriptions, values, default values, and placeholders for each configured language.

Supported field types and settings

The Field Type selector currently provides the following values:

Type What the donor sees Collects a donor value? Important settings
Text A single-line text input Yes Default value, datatype validation, validation rules, placeholder, size, maximum length, and input mask
Textarea A multi-line text input Yes Default value, placeholder, rows, columns, maximum length, and validation
List A single-select list, or a multi-select list when Multiple is enabled Yes Values, Default Values, Multiple, size, and validation
Checkboxes A group of checkboxes Yes Values, Default Values, size (options per row), and validation
Radio A group of radio buttons Yes Values, Default Values, size (options per row), and validation
Date A date input Yes Default value and validation settings available for the field
Countries A country selector Yes Country Value: full country name or country code; default and validation settings
State A state/region input Yes Default and validation settings available for the field
File A file picker Yes Required, access, and the component's upload configuration
Heading A heading using the field title and optional description No Title, description, campaign, access, and publication
Message Instructional text using the field description No Description, campaign, access, and publication
SQL A list generated by an SQL query Yes Put the query in Values; it must return list option objects expected by the field
PHP A field generated by the extension's PHP field implementation Depends on the implementation Use only when the required PHP behavior is understood and approved

Heading and Message are display-only types. They do not require donor input; a Message is also omitted from email and invoice data. SQL is intended for administrators who need a database-generated list and understand the query and its permissions. It is not required for an ordinary fixed-choice field. PHP is available in the selector, but its behavior depends on the installed implementation and should not be used as a general-purpose data-collection example.

Common settings

Setting Applies to How it works
Required Input fields Adds required validation. It does not turn Heading or Message into input fields. The protected first_name and email fields cannot have this status changed.
Values List, Checkboxes, Radio, SQL For the fixed-choice types, enter options separated by commas or by line breaks; the renderer accepts both formats. For SQL, enter the query instead of a fixed option list.
Default Values Input and choice fields where supported Supplies the initial value. For a multi-value field, use the format expected by that field and verify each selected default on the frontend; do not assume every field treats one line as one option.
Datatype validation / Validation rules Fields with validation support Select the available datatype rule and use validation rules when a format or additional rule must be enforced. Required validation is added or removed with the Required setting for editable fields.
Rows / Columns Textarea Controls the textarea dimensions when non-zero values are saved.
Size Text, List, Checkboxes, Radio, File Controls the HTML input size for Text and File, the list size for List, and the number of options displayed per row for Checkboxes and Radio.
Campaign Any field A field can be assigned to one or more campaigns when campaign-specific fields are enabled. The frontend flow applies campaign filtering when a campaign is selected; verify the no-campaign form separately.

File Upload

The File type renders a file picker. It is accepted only when the extension is in the component configuration's Allowed Extensions list, and uploads larger than Maximum Upload File Size are rejected. The default configuration in the source allows doc, docx, ppt, pptx, pdf, zip, rar, jpg, jpeg, png, and mp4, with a 2 MB limit; verify the values in Joom Donation → Configuration because an administrator can change them.

Set Required when the process requires an attachment. Uploaded files are stored under media/com_jdonation/files and the saved filename is stored with the donor's custom-field value. Administrators can view the current filename and use Download when editing the donor data. The upload handler also keeps an existing file when a donor edits a record without selecting a replacement.

Check the donation form

After saving a field:

  1. Open the frontend menu item or donation URL that displays the intended donation form, and select the intended campaign when the flow provides a campaign selector.
  2. Confirm that the donor-facing title, description, control type, option values, default values, and order are correct.
  3. Check the campaign scope on both a form for the assigned campaign and a form without a campaign. The standard and simple-flow templates do not apply campaign filtering identically, so verify each frontend flow used by the site.
  4. Leave a required input empty and submit the form. Confirm that the form prevents submission and shows the required-field validation message.
  5. Submit a test donation with a non-sensitive value, then open the donor record or export to confirm that the collected value is available.

Common Setup Scenarios

Ask how the donor heard about the organization

Goal: collect an optional answer without requesting sensitive information.

  • Select List.
  • Set the title to How did you hear about us?.
  • Enter choices in Values, for example Search engine, Social media, Friend or family, and Other, separated by commas or line breaks.
  • Leave Required disabled unless an answer is genuinely necessary; leave Multiple disabled.
  • Assign the field to the required campaign scope and publish it.

The donor sees a single-select list and the selected value is saved with the donor record.

Show a question for one campaign

Goal: collect campaign-specific information without putting the question on every campaign form.

  • Select a value-collecting type such as Text or List.
  • Enter an internal name and a clear donor-facing title.
  • Select the one campaign in Campaign and publish the field.
  • Confirm the campaign-specific setting is enabled in the component configuration.

The field is intended to appear on that campaign's form. Verify both the target campaign and a no-campaign form because the frontend flows handle campaign filtering differently.

Add instructions without asking for data

Goal: explain a step or eligibility requirement on the form.

  • Select Message for paragraph-style instructions, or Heading for a section heading.
  • Put the donor-facing text in Description for Message, or use Title and optional Description for Heading.
  • Leave Required disabled and publish the field.

The donor sees the text or heading, and no custom value is collected. Message content is not included in email or invoice data.

Require an attachment

Goal: request a supporting document for a process that needs one.

  • Select File and set a clear title such as Supporting document.
  • Enable Required.
  • Confirm the allowed extension list and maximum size in Joom Donation → Configuration.
  • Assign the appropriate campaign scope, publish the field, and test with a permitted non-sensitive file.

The donor sees a file picker and must provide an accepted file before the form can be completed. The saved file is available from the donor data administration screen through Download.