# evoLeadForms reference

> evoLeadForms 1.9.0 reference: field types, rules, calculations, the {evoform} editor code, public routes, webhooks, connectors, resend, REST API, evoMCP tools, CSV export and limits.

## Field types

Each field has a **label** and a **technical name** (lowercase letters, numbers and underscore; it cannot start with `lf_`). Do not change the technical name of a field that has already received submissions. All input fields also support a visibility rule.

| Type | Panel name |
| --- | --- |
| `text`, `textarea`, `email`, `tel`, `url` | Text, Text area, Email address, Phone, Web address Properties: Required, personal data, example text, help, default value. Text, email, phone and URL support a mask. · Stored as: Text |
| `number` | Number Properties: The above, plus minimum and maximum. · Stored as: Number |
| `select`, `radio` | Drop-down list, Options (single choice) Properties: Options (1 to 50, one per line, `value\|text`). · Stored as: The chosen value |
| `checkbox` | Checkbox Properties: Required, personal data, help. · Stored as: `1` when ticked |
| `checkbox_group` | Checkbox group Properties: Options (1 to 50). · Stored as: List of values |
| `hidden` | Hidden field Properties: Default value. Not personal data by default. · Stored as: The value |
| `info` | Informative text Properties: Plain-text paragraphs, never HTML. · Stored as: Not stored |
| `separator` | Separator Properties: Label. · Stored as: Not stored |
| `consent_privacy` | Privacy consent Properties: Always required. Only one per form. Cannot take rules. · Stored as: Ticked, and the exact text shown |
| `consent_marketing` | Marketing consent Properties: Only one per form. It cannot be required. · Stored as: Ticked, and the exact text shown |
| `datetime` | Date and time Properties: What is chosen (`date`, `time` or `datetime`), minimum and maximum. · Stored as: `2026-10-12`, `09:30` or `2026-10-12T09:30` |
| `range` | Slider Properties: Minimum (0), maximum (100) and step. · Stored as: A number inside the range and aligned with the step |
| `rating` | Rating Properties: Maximum from 3 to 10 (5 by default). · Stored as: Integer from 1 to the maximum |
| `image_radio`, `image_checkbox` | Image (single choice), Image (multiple choice) Properties: Options `value\|text\|image`. · Stored as: The value or the list of values |
| `tel_country` | Phone with country Properties: Default country (two-letter code, `ES` by default). · Stored as: `+34 600123456` |
| `country` | Country (since 1.6.0) Properties: Those of input fields, plus Default country (two-letter ISO code; none by default). A drop-down with the 249 ISO 3166-1 countries. · Stored as: The ISO code (`ES`) |
| `email_confirm` | Email confirmation Properties: The email field it confirms. · Stored as: Not stored: it only checks that the two match |
| `calc` | Calculation Properties: Formula and decimals (0 to 6, 2 by default). · Stored as: Text with the requested decimals |
| `file` | File (since 0.3.0) Properties: Accepted types and maximum size (1 KB to 10 MB, 2 MB by default). Off by default: uploads must be allowed in the options. · Stored as: The clean file name; the file goes to the private folder |

Notes:

- “Is personal data” is on by default for every input field except `hidden` and `calc`. It governs masking in the API and in evoMCP.
- An option's image is a site path (`images/…`) or an http(s) address. It is rendered with `alt=""` because the option text is already in the label.
- Phone with country uses its own list of dialling prefixes and does not validate real numbering. It cannot be used in rules or calculations.
- The country field shows names in the page language (Spanish, English, French, German, Italian, Portuguese, Catalan and Basque; any other language uses English) and always stores the ISO code. It does not locate the visitor: not by IP and not by any other means. In email notices it appears as “España (ES)”.
- An `email` field feeds the submission's email column (the first one in the form).

## File field

The visitor attaches a document or an image. Everything is decided by content, not by the name or the type the browser declares.

| Type | Extra check |
| --- | --- |
| PDF | No JavaScript, launchers, embedded files, RichMedia or XFA. |
| JPG, PNG, WebP, GIF | The image header is read; 50 million pixels at most. |
| TXT, CSV | UTF-8 text without control characters. |
| DOC (old Word, since 1.6.0) | Only a document that really is Word passes: no macros and no embedded objects. Other files in the same container, such as old Excel or PowerPoint, are not accepted. |
| DOCX, XLSX | The ZIP directory is checked without unpacking: 500 entries and 100 MB declared at most, no encryption, no macros or executables and no remote templates. |

SVG, HTML, XML, executables, scripts, generic ZIPs and any name with a dangerous extension in any position (`a.php.pdf`) are always rejected. A form accepts at most 3 file fields and 20 MB in total, and receives at most 500 MB of files in 24 hours (“Daily quota” option, 0 is no limit).

Files are stored in the `uploads/` subfolder of the private folder, with a random name and no public URL. They are downloaded from the submission's screen with the `evoleadforms.export` permission and a session token. evoMCP and the API only see that a file exists (field, type and size). There is no antivirus: the extension reduces the surface, it does not remove it.

## Visibility rules

A rule is JSON. One condition: `{"field":"type","op":"eq","value":"company"}`. Several: `{"all":[…]}` (all of them) or `{"any":[…]}` (any of them), nestable up to 4 levels and 20 conditions.

| Operator | Is met if the field… |
| --- | --- |
| `eq`, `ne` | equals (differs from) the value, comparing text. A checkbox group only equals if it has a single matching item. |
| `in` | has a value from the list (`value` is a list). |
| `contains` | contains the text or, in a checkbox group, that exact item. |
| `empty` | is empty or only spaces. |
| `gt`, `lt` | is greater (less) than the value, only if both are numbers. |

- A rule can only look at earlier fields. A page can only look at fields on earlier pages, and the first page cannot be hidden.
- A missing field counts as empty. A malformed rule is never met: the field stays hidden and not required.
- A field hidden by its own rule or its page's rule is not required, is not validated and its value is not stored.
- The server recalculates visibility when the submission arrives. Whatever the browser sends for a hidden field or a calculation is discarded.

## Calculations

A `calc` field takes a formula made of numbers, technical names of earlier fields, `+ - * / %`, parentheses and the functions `round(x, n)`, `floor`, `ceil`, `abs`, `min` and `max`. Anything outside that grammar is rejected whole. Up to 500 characters and 20 levels of nesting.

- An empty or missing field counts as 0.
- A value that is not a number, a division by zero or an out-of-range result leaves the field empty.
- Rounding takes halves away from zero, with the same result on the server and in the browser.

## Pages, masks and default values

- **Pages:** up to 10, each with a title and an optional visibility rule. The browser shows “Step n of N”, a progress bar and Back and Next buttons. The final validation is always the server's.
- **Masks:**`9` a digit, `a` a letter, `*` a letter or a digit. `- ( ) / . + : , _` and the space are literals (up to 40 characters). The browser applies them as you type; the server requires the whole value to meet the mask.
- **Default value from…:** a URL parameter (`{"source":"query","key":"utm_campaign"}`) or the logged-in user (`{"source":"user","key":"email"}`, also `name` and `username`). Only what the field asks for is filled in. The value is sanitised (no control characters, 255 at most) and escaped when rendered. A form with prefilled values is not cached.

## The {evoform} code in articles and text modules

The simplest code, `{evoform slug}`, renders the form unfolded in the text. With attributes it renders an invitation (a button, a link, a card…) that opens the form. The editor's “evoLeadForms” button (since 1.9.0) writes the code for you; you can also type it by hand or generate it with evoMCP.

Example:

```
{evoform seo-guide diseno=tarjeta abrir=ventana texto="Download the guide" imagen="images/guide.jpg" alt="Cover" titulo="SEO guide" frase="Everything you need"}
```

The attribute names and their values are in Spanish, whatever the language of the site or of the administrator.

| Attribute | Values |
| --- | --- |
| `diseno` (layout) | `boton` (button), `texto` (linked text), `imagen` (linked image), `imagen-boton` (image and button), `imagen-texto` (image and linked text), `tarjeta` (card), `banner`. Without it, the form is shown unfolded. |
| `abrir` (on click) | `ventana` (dialog window, the default), `desplegable` (unfolds in place), `pagina` (separate page). It only counts with an invitation layout. |
| `texto` | Text of the button or link. |
| `imagen`, `alt`, `decorativa` | Image path inside the site (`images/…`, with an image extension), its alternative text, and `decorativa=1` if it has none. `http`, `data:`, `..` and absolute paths are discarded. |
| `titulo`, `frase` | Title and short sentence of the card and the banner. |

A value that is not understood is ignored and never breaks the page.

### What each behaviour does

- **`ventana`:** the form opens in a dialog on top of the article (the browser's native `dialog` element: focus stays inside, Escape and the “Close” button close it, and focus returns to the invitation).
- **`desplegable`:** the form unfolds in place.
- **`pagina`:** leads to a page that holds only the form, in the active template (`index.php?option=com_evoleadforms&view=form&slug=…`). It carries `noindex, nofollow`, stays out of the sitemap and answers 404 if the form does not exist or is not published. It is also the fallback when the browser does not run JavaScript.

### Rules and limits

- **One form per page.** If the same form appears several times, it is rendered once (at the first invitation with a window or an unfolding behaviour) and the others open the same dialog.
- **Where the code works:** inside a paragraph, a list or a div. Not inside a heading or a link.
- **Quotes:** straight quotes typed inside a text are converted to typographic ones, and `&`, `<` and `>` are written as entities. The editor button already does this.
- With a draft, unpublished or non-existent form, the article renders nothing: no link and no dialog.
- In listings (category blog, featured, archive), the invitation shrinks to a link to the separate page. The form is only rendered in the full article.
- Joomla's search (`com_finder`) does not index the code.
- An insertion made with the button cannot be reopened in the dialog to edit it: edit the code by hand.
- The button is only in the administrator, not when editing from the site. The inserted code stores no personal data.

## Submission: public routes and responses

The form talks to the component through three tasks:

| Task | What it does |
| --- | --- |
| `form.token` | Returns a fresh form token, never cached. It is valid for 24 hours and carries the signed load time. |
| `form.submit` | Receives the submission (POST only) and validates it against the saved definition, never against what the browser says. |
| `form.download` | Delivers the file of a protected download with its token. |

Responses of `form.submit`:

| Code | Meaning |
| --- | --- |
| 200 | Submission stored. Returns `ok`, the `event_id` (the submission UUID), the message or redirect, and the download link if there is one. |
| 400 | Antispam (trap field, minimum time or per-IP limit) or invalid configuration. A generic message is shown and nothing is stored. |
| 403 | The Joomla CSRF token is missing or invalid. |
| 405 | Not a POST. |
| 422 | Validation errors, per field. |
| 503 | The submission cannot be accepted: the file of a protected download is missing, the private folder is not proven protected, the captcha cannot be checked, the “email only” download has no public URL, the form has a file field and uploads are not allowed, or an extension refuses to receive it (an `unavailable` response, see “Server events”). |

Download (`form.download`): an expired link answers 410. With “Instant download and email” delivery the file is served when the link is opened. With “By email only”, a GET only shows a confirmation page; the email is marked as verified and the file is delivered on the POST of the “Confirm and download” button. This way mailbox link scanners do not consume the download. The response carries `Cache-Control: private, no-store` and `X-Content-Type-Options: nosniff`, and every download is logged. Submissions marked as spam do not deliver their file.

## Conversion events in the browser

Each form carries the event names in its settings. After a successful submit, the script does the following:

- `dataLayer.push({event: <Analytics event>, form_id, event_id})`. `generate_lead` by default.
- `gtag('event', 'conversion', {send_to})`, only if the form has a “Google Ads conversion” and `gtag` is loaded.
- `fbq('track', <Meta Ads event>, {}, {eventID})`, only if `fbq` is loaded. `Lead` by default.
- When the download link is clicked: `dataLayer.push({event: 'file_download', form_id})`.

The `event_id` is the submission UUID, so you can deduplicate against a server-side conversion. The script does not load pixels or analytics: it only calls what your site has already loaded.

## Server events

| When | Event | Arguments |
| --- | --- | --- |
| Before a submission is accepted (since 1.7.0). A plugin can refuse to receive it. | `onEvoleadformsBeforeSubmit` | `form`: the form row. `refuse`: starts as `false`; if a plugin sets it to `true`, the submission is rejected with a 503 `unavailable` and nothing is stored. |
| With the “Fire the server event” action. Plugins in the `evoleadforms` group (connectors) listen to it. | `onEvoleadformsSubmissionCreated` | `submission`: the full submission, with `form_slug` |
| With the “Link with evoOrigin” action. | `onEvooriginLead` | `refType` = `leadforms`, `refId` = submission id |
| When actions are prepared. Lets a plugin add actions of its own. | `onEvoleadformsCollectActions` |  |

A connector that fails never prevents the submission from being stored. Whoever listens to `onEvoleadformsSubmissionCreated` receives personal data: see [data we process](https://evoaddons.com/en/documentation/evoleadforms-data). `onEvoleadformsBeforeSubmit` does not receive the submission content, and a failure in the plugin that listens to it never blocks the form. evoLanding uses it, for example, to close a landing page's form outside the dates of its campaign.

With evoOrigin installed, the link stores the submission's attribution. It is described in the [evoOrigin reference](https://evoaddons.com/en/documentation/evoorigin-reference).

## Webhooks and the outbox

The “webhook” action notifies another service (a CRM, n8n, Zapier, Make, a script of your own) of each submission with a signed HTTP request. It is a data output: it is off by default and has to be added to the form on purpose.

1. The submission is stored before anything else, and the action only leaves a pending row in the outbox. Nothing goes out in that request: if the destination service is down or slow, the visitor does not notice.
2. The scheduled task “evoLeadForms: deliver webhooks” delivers the outbox, 50 rows per run at most. Create it in *System → Scheduled Tasks* and set it to every minute.
3. Each delivery rebuilds the payload from the database, signs it, checks the destination with the anti-SSRF guard and makes a POST without following redirects.
4. A 2xx is `ok`. A network error, a 5xx, 408, 425 or 429 is retried with exponential backoff (1, 2, 4… minutes, up to 6 hours). Any other 4xx is `failed`, with no retries. After the configured attempts (5 by default, 1 to 10) it gives up.

Action settings: `url` (https; http and private networks only with the local option), `payload` (`reference` by default, with no personal data, or `full`), `rotation` (signing key number) and `max_attempts`. Up to 3 webhooks per form. Creating, enabling or changing one is flagged as a sensitive change in the evoMCP approval.

Headers: `Content-Type: application/json`, `X-Evoleadforms-Event: submission.created`, `X-Evoleadforms-Delivery: <uuid>.<action id>` (idempotency key, the same on every retry) and `X-Evoleadforms-Signature: t=<unix>,v1=<hex>`. The signature is an HMAC-SHA256 of `"<t>.<body>"` with the webhook's signing key; the receiver should reject timestamps older than 5 minutes. The key is not stored: it comes from the site's secret, the form, the action and the rotation, and is shown on the form's screen to whoever can edit it. If you change the site's secret, every signing key changes.

The full payload adds the email, language, status, fields (for an uploaded file, only its clean name), consents and attribution. The IP, the user agent, the Joomla user and tracking identifiers never travel.

## Connectors: Brevo, Mailchimp and HubSpot

Three actions send each submission's contact to an external service. They are off by default and each form enables them for itself.

| Connector | What it does |
| --- | --- |
| Brevo | Double opt-in by default: Brevo asks the owner of the email to confirm with the template you specify and sends them to the destination address. Direct signup has to be chosen and is a sensitive change. First name, last name and mobile attributes; the mobile only goes out with an international prefix. |
| Mailchimp | Creates the member in the audience you specify, with double opt-in by default. The data centre comes from the key's suffix. |
| HubSpot | Creates the contact with the properties that have a value. |

- **They only create.** If the service answers that the contact already exists, the delivery counts as done and nothing is touched.
- **The destination is fixed:** each connector points at its service's API. Nobody types a URL.
- **Consent rules.** Brevo and Mailchimp require the submission's marketing consent. HubSpot requires it by default and accepts privacy consent for handling the enquiry. Without the required consent, the contact is not sent.
- **Only what you assign goes out.** Besides the email, only the fields you assign in the map go out. The IP, the user agent and tracking identifiers do not travel.
- At most five connectors per form. Keys are entered in the component options (see [settings](https://evoaddons.com/en/documentation/evoleadforms-settings)) and stored sealed.
- Retries are the webhooks' ones. A bad key (401) or a missing list (404) is not retried.

## Resending a submission

From the submission's screen or with evoMCP you can repeat an action that has already run. It is an output of personal data, so it has its own permission, a token and approval.

| Action | What happens when it is resent |
| --- | --- |
| `email_notify` | The notice goes out right then, with the form's usual templates and recipients. |
| `webhook` | A new pending row is recorded and the delivery task delivers it under the usual rules. The idempotency header is the same: the receiver decides whether to treat it as a duplicate. |
| `brevo`, `mailchimp`, `hubspot` | Like the webhook, but only if the last delivery did not succeed (`failed` or `skipped`). A connector that has already delivered is not repeated. Consent is checked again. |

- It requires the component's `core.edit.state` permission. The button only appears with that permission and as a POST with a token.
- One minute between resends of the same action of the same submission. A delivery that is still open is not duplicated.
- A deleted submission is not resent. `store`, `event`, `origin_link`, downloads and replies to the visitor cannot be resent.
- When a resend does not go out, the message explains the reason in plain words (consent missing, the email did not go out, invalid configuration…), not with the internal code.
- Each resend is recorded in the action log, with its status and a short code, with no personal data.

## Action log

Each action of each submission leaves one line with no personal data: the action, the status and a short error code. Usual statuses: `ok`, `failed`, `skipped`, `retry` and `pending`. A `skipped` carries the reason: `condition` (the condition was not met), `no_consent` (the required consent is missing), `rate_limited_recipient` or `rate_limited_form` (a confirmation cap was reached). For connectors, `exists` means the contact already existed.

## CSV export

Exporting needs the `evoleadforms.export` permission. The file is UTF-8 with a BOM, separated by semicolons. Fixed columns: `id`, `created`, `form`, `form_version`, `status`, `email`, `lang`, `consent_privacy`, `consent_marketing`, `ip`, `source_url`, `referrer`, `utm_source`, `utm_medium`, `utm_campaign`, `utm_term`, `utm_content`, `gclid`, `fbclid`. After them, one `field:name` column per field. Cells starting with `=`, `+`, `-` or `@` are neutralised so that a spreadsheet does not read them as formulas.

## Forms: templates, import and export

An exported form is a JSON file with the definition (settings, fields, pages and actions); it does not include submissions. On import the file is validated against the schema (256 KB at most), the identifier is sanitised and the form enters as a draft. If it brings sensitive changes (recipients, redirects, downloads, captcha…), the notice lists them.

## Joomla REST API

Header `X-Joomla-Token: <token>`. You need the `core.manage` permission on `com_evoleadforms`; without it, 403.

| Method and route | What it does |
| --- | --- |
| `GET /api/index.php/v1/evoleadforms/forms` | Lists the forms. |
| `GET /api/index.php/v1/evoleadforms/forms/:slug` | Returns a form with its definition and version. |
| `PATCH /api/index.php/v1/evoleadforms/forms/:slug` | Saves a form. Body: `{"definition": …, "base_version": N}`. Needs `core.edit`, or `core.create` if the identifier does not exist. If the version is out of date it answers 409 with the current version and overwrites nothing. |
| `GET /api/index.php/v1/evoleadforms/submissions` | Lists submissions, with personal fields masked. |
| `GET /api/index.php/v1/evoleadforms/submissions/:id` | Detail of one submission, without IP or browser. `meta` flags which fields are personal data. |

Submission list parameters: `filter_form` (the form identifier) and `page[limit]`, `page[offset]` (the limit goes from 1 to 100, 20 by default). List responses carry `meta.total-items`.

## MCP tools (evoMCP)

They come with the `evomcp` group plugin. You need evoMCP, and the connection must have permission on the `evoleadforms` component (“Forms” and “Submissions” sections). The user needs `core.manage` and whatever permission each operation asks for.

| evoMCP permission | Tool | What it does |
| --- | --- | --- |
| Read | `evoleadforms_field_types` | Field types and their properties (the same schema the administrator and the builder use). |
| Read | `evoleadforms_list_forms` | Forms with identifier, title, state, version and number of submissions. |
| Read | `evoleadforms_get_form` | Full definition, version and pending changes from the builder. |
| Read | `evoleadforms_validate_form` | Validates a definition without saving it and returns errors and warnings with their path. |
| Write | `evoleadforms_save_form` | Creates or modifies a form. For an existing one it needs `base_version`; if it changed, it returns the conflict. Needs human approval. |
| Write | `evoleadforms_set_form_state` | Publishes, sets to draft or archives. Needs human approval. |
| Write | `evoleadforms_delete_form` | Deletes a form and its history; submissions are kept. Needs human approval. |
| Read (submissions) | `evoleadforms_list_submissions` | Lists submissions with personal fields masked. Filters: `form`, `email`, `status`, `from`, `to`, `limit` (1 to 100), `offset`. |
| Read (submissions) | `evoleadforms_get_submission` | Full submission: fields, consents, attribution and actions. No IP or browser. Flags personal data. |
| Write (submissions) | `evoleadforms_set_submission_status` | Changes the status of up to 100 submissions. |
| Write (submissions) | `evoleadforms_delete_submissions` | Deletes up to 50 submissions with their downloads, logs and files. Needs human approval. |
| Read | `evoleadforms_submission_stats` | Statistics per form and per day, without personal data. `days` parameter (1 to 365). |
| Read (submissions) | `evoleadforms_list_deliveries` | Status of webhook and connector deliveries (`action` field on each row). |
| Write (submissions) | `evoleadforms_retry_delivery` | Requeues a webhook or connector delivery. Needs human approval. |
| Write (submissions) | `evoleadforms_resend_submission` | Resends one action of a submission (`id`, `action_id`). Supports `dry_run`, which answers the same as the real resend without touching anything. Flags personal data and needs human approval. |

The write tools support `dry_run`. In `evoleadforms_save_form` it validates, shows the differences and highlights sensitive changes. The security options (private folder, public URL, proxies, connector keys) cannot be changed from evoMCP.

## Scheduled tasks

| Task | What it does |
| --- | --- |
| “evoLeadForms: data retention” | Clears the IP and browser of submissions and download accesses older than the IP retention; deletes expired submissions of each form and those of forms that no longer exist (using the general period); deletes antispam attempts older than a day and uploaded files that no submission knows. |
| “evoLeadForms: check the private folder” | Repeats the HTTP test of the private folder and repairs its guard files. It only repairs folders that are its own. |
| “evoLeadForms: deliver webhooks” | Delivers the outbox of webhooks and connectors. Set it to every minute. |

The package does not create them: do it in *System → Scheduled Tasks*.

## Limits

| Item | Limit |
| --- | --- |
| Fields per form | 50 |
| Options per field | 50 |
| Pages per form | 10 |
| File fields per form | 3 (20 MB in total) |
| Webhooks per form | 3 |
| Connectors per form | 5 |
| Definition size | 200,000 bytes |
| Import file | 256 KB |
| Levels and conditions in a rule | 4 and 20 |
| Versions kept in history | 20 |
| Edit lock | 30 minutes |
| Form token | 24 hours |

---

https://evoaddons.com/en/documentation/evoleadforms-reference
