Donation Form

The Donation Form menu item publishes the frontend form supplied by Joom Donation. This page describes the current Joomla 5 and Joomla 6 menu item and the three layouts that the component registers. The folder name is historical; this page is for Donation Form, not licenses.

Create or edit the menu item

  1. In Joomla Administrator, open Menus, select the menu in which the donation page should appear, and click New. To change an existing page, edit that menu item instead.
  2. In Menu Item Type, click Select, choose Joom Donation, and select Donation Form. The exact type name is Donation Form.
  3. In the menu item's Options tab, use the Donation Form request fields:
    • Choose campaign (Campaign in some Joomla form renderings) optionally fixes the campaign. Leave it at the empty/default value to let the frontend use its campaign-selection logic.
    • In the Other setting fieldset, Select Layout chooses Default layout, Simple Donation layout, or Multi-steps Donation layout.
  4. Set the normal Joomla menu details (title, menu, access, published state, and page metadata), then save and publish the item.

To change an existing page, open the menu item, go to Options, change Select Layout, and save. The global Configuration value Default Donation Layout is used only when this menu item has no valid layout value. It is not a fourth menu-item layout.

Layouts that can actually be selected

Layout What donors see Best for Important differences or limits
Default layout (default) A single-page form with campaign context or selection, amount controls, donor fields, optional custom fields, donation type, payment method, payment details, and submit action. A complete form where the available information should be visible together. The amount choices, fields, recurring controls, payment fields, and campaign information are conditional; this layout does not bypass Configuration, campaign, or payment-plugin rules.
Simple Donation layout (simpleflow_layout) A single-page, more compact presentation of the same donation flow, with amount, donor information, recurring controls, payment selection/details, and submission. A shorter-looking page when the site still needs the normal donation data. “Simple” is presentation, not a promise of fewer steps or fewer fields. It still renders custom fields and recurring controls when the relevant settings allow them.
Multi-steps Donation layout (smart) A guided form with visible Amount, Info, Payment, and Confirm stages. The donor moves through the stages and reviews a summary before submitting. A long form where separating amount, donor information, payment, and confirmation makes the sequence clearer. The step display does not change validation or payment-plugin capability. Some controls are hidden until their step; the submitted values are still validated by the same component flow.

These are the complete choices in the current Donation Form menu-item XML. default_campaign.php and simpleflow_layout_campaign.php are internal campaign variants, not additional administrator choices. The module's layouts and Joomla template overrides are separate: they do not add choices to this menu item, and an override can change presentation without becoming a supported component layout.

The effective layout order is:

  1. A valid Select Layout value saved on the Donation Form menu item.
  2. Otherwise, Configuration → Default Donation Layout.
  3. If neither produces a valid value, the component renders default.

The implementation accepts default, simpleflow_layout, and smart; an unknown menu value falls back to the configured default. A Joomla template override may change the final HTML and appearance, so confirm the published frontend page after installing or changing an override.

What the campaign setting does

When Choose campaign contains a campaign ID, the request carries that campaign ID. The form loads that published campaign, shows its title/context when the campaign-information settings permit it, and uses its campaign-specific limits, amounts, currency, donation type, messages, and other settings where applicable. The donor is not given a general campaign switch by that fixed menu-item link; changing the campaign requires changing the menu item or using a different link/request.

When no campaign is selected, the component builds a selector from published, public campaigns and the form can ask the donor to choose one when campaign use is enabled. This is not an unconditional promise that a dropdown will be visible: Configuration → Use campaign, the selected layout, the available campaigns, and any override affect what is rendered. If the submitted campaign remains empty, the persistence logic falls back to the first published campaign by ordering; therefore a general page must be tested rather than described as an unassigned donation page.

After a campaign is selected, the frontend can refresh campaign-dependent data. Depending on the campaign and configuration, this includes suggested amounts and the custom-amount box, campaign custom fields, one-time/recurring availability and frequencies, currency, and payment methods. A campaign that permits only one donation type or a payment plugin that does not support recurring donations can remove that choice. The three layouts use the same underlying validation and processing; their major difference is arrangement and navigation.

Layout details on the frontend

Default layout

The default layout presents the donation form on one page. The donor first sees campaign context or the campaign selector (when one is available), then suggested amounts and, if enabled, a custom amount. The donor supplies the configured donor fields and custom fields, chooses one-time or recurring when Configuration, campaign settings, and the selected payment plugin allow it, enters payment details required by that plugin, and submits. The final controls include the component's validation, consent/captcha and payment processing; they are not replaced by the menu item.

Campaign-specific suggested amounts, minimum/maximum limits, currency, messages, custom fields, and recurring rules can make two default forms look different. A field hidden by a campaign or configuration is not collected from this screen, but hidden/default values can still be bound and checked during submission. Use this layout when seeing the full flow at once is more useful than reducing the initial visual density.

Simple Donation layout

Simple Donation keeps the flow on one page but uses a more compact arrangement. Amount selection/custom amount, donor information, custom fields, recurring options, payment method/details, and submit controls remain conditional on the same component settings as Default. It is therefore suitable for a form that needs only essential information, but it does not remove configured required fields or guarantee that recurring donations or custom fields are unavailable.

Choose it for a visually shorter page, accepting that a campaign with many required fields, recurring choices, or payment details can still produce a substantial form. It is not a separate payment or validation path.

Multi-steps Donation layout

Multi-steps Donation (smart) displays four progress stages: Amount, Info, Payment, and Confirm. The donor chooses a suggested or custom amount in Amount, enters donor and custom-field data in Info, selects a payment method and supplies its required details in Payment, and reviews the summary in Confirm before the form is submitted. The campaign ID is carried through the form; this layout does not make a fixed-campaign menu item switchable.

The progress UI is a presentation of the same campaign, configuration, custom-field, recurring, and payment-plugin rules. Recurring choices appear only when recurring is enabled and both the campaign and payment method permit them. Payment fields are supplied by the selected plugin, and a plugin can leave the payment step unavailable or limited. This layout is useful for longer forms, but its extra navigation is a trade-off for a single-page view.

Common Setup Scenarios

A page for one campaign

Goal: publish a Donate page dedicated to one campaign. Menu item and layout: create Joom Donation → Donation Form, set Choose campaign to the campaign, and select Default, Simple Donation, or Multi-steps. Additional setup: configure the campaign's amounts, limits, donation type, custom fields, currency, and messages in Campaigns. Confirm the global Configuration and the required Payment Plugins are enabled. Donor experience: the campaign is fixed and its title/context and campaign-specific options are used; the donor does not choose another campaign in this form.

A general Donate page

Goal: let donors choose a campaign when the installation supports that flow. Menu item and layout: leave Choose campaign empty and choose the desired layout. Additional setup: review Configuration → Use campaign, publish the intended public campaigns, and configure their amounts, fields, donation types, and payment methods. Donor experience: when the selector is enabled and eligible campaigns exist, the donor sees a campaign list and campaign-dependent controls can change after selection. If campaign use is disabled or no eligible campaign is available, the result is different; verify the page and do not assume that it records an unassigned donation. An empty submitted campaign can fall back to the first published campaign.

A compact form with essential information

Goal: keep the initial page visually short. Menu item and layout: choose Simple Donation layout. Additional setup: configure the donor fields and custom fields in Custom Fields, and review campaign and Configuration requirements. Do not remove required fields merely to make the page look short. Donor experience: the form is presented compactly on one page, but all enabled required fields, payment details, and recurring controls still appear when applicable.

Suggested amounts, custom fields, or recurring donations

Goal: make richer donation choices clear without hiding the processing rules. Menu item and layout: choose Default layout for an at-a-glance form or Multi-steps Donation layout for a guided sequence. Additional setup: set suggested amounts and amount-box behavior in Configuration and/or Campaigns; define fields in Custom Fields; enable recurring and its frequencies in Configuration; and enable/configure a compatible recurring Payment Plugin. The payment plugin must implement recurring support; enabling the global option alone is not sufficient. Donor experience: suggested/custom amounts and custom fields appear where enabled, recurring appears only for compatible campaign/payment combinations, and the payment step shows only fields supplied by the selected plugin.

Publish and test checklist

From a logged-out visitor's perspective:

  • Open the published menu link and confirm it is the intended Donation Form item.
  • Confirm the fixed campaign title, or open the campaign selector and check that the expected public campaigns are listed.
  • Try a suggested amount and a valid custom amount; check the displayed currency and minimum/maximum validation.
  • Select each supported donation type and confirm that recurring frequencies appear only when expected.
  • Leave each required donor/custom field empty once and confirm that validation identifies it.
  • Test each published payment method, including the fields and confirmation step shown by that plugin.
  • If a test or sandbox gateway is available, submit a test donation there and verify the success/failure return. Do not make a real transaction while testing.
  • Repeat after enabling a Joomla template override or changing campaign/configuration settings; those changes can alter the visible result without changing the menu item.

Source verification and frontend caveats

This update changes only documentation/pages/08.menu-layouts/04.licenses/docs.md. The layout names and menu parameters were verified in site/views/donation/tmpl/default.xml; layout selection and fallback are implemented in site/view/donation/html.php; the Default, Simple Donation, and Multi-steps markup is in site/view/donation/tmpl/default.php, site/view/donation/tmpl/simpleflow_layout.php, and site/view/donation/tmpl/smart.php. Campaign loading and campaign-specific limits are in site/view/donation/html.php, while submission fallback and recurring payment gating are in site/model/donation.php and site/controller/donation.php.

The previous page listed only Default and Simple Donation and presented the campaign dropdown as unconditional. It omitted Multi-steps Donation, the global-layout fallback, campaign/configuration/payment conditions, custom fields, recurring behavior, and the distinction between menu layouts, internal campaign templates, module layouts, and template overrides. This documentation is source-verified; it does not claim that a Joomla 5 or Joomla 6 site was run. Verify the actual frontend for the site's template, overrides, campaign data, configuration, and payment plugins.