Skip to main content

Counter Action for Bricks Form

Updated yesterday

This action lets a Bricks Form submission increment a counter and, optionally, write the updated counter value back into one of the form fields. It is designed for use cases such as โ€œfirst N sign-ups,โ€ stock/seat tracking, or simple submission counters that must increment on each successful submission.

Settings

After adding a Form element in Bricks, open Actions and select Counter. A dedicated Counter group becomes available with the following controls:

Counter

  • Type: Select

  • What it does: Choose which counter to increment on submit.

  • Notes:

    • If no counters exist, the panel shows a helper link to add a new one under Dynamic Toolbox โ†’ Counters.

    • The action will not run unless a valid counter is selected.

Increment By

  • Type: Number

  • Default: 1

  • Range: Minimum 1

  • Dynamic data: Supported. You can use Bricks dynamic tags; the value is rendered at runtime before validation.

  • Validation: If the resolved value is not a positive integer, the action falls back to 1.

Field To Update (optional)

  • Type: Select (maps existing form fields)

  • What it does: Writes the incremented counter value into the selected form field.

  • Recommendation: Use a Hidden field to store the value without exposing it to users.

  • Why it matters: Any actions that execute after the Counter action (e.g., email, webhook, integrations) can read this field and receive the latest counter value.

Interaction with other Bricks Form actions

  • Because the incremented value can be written back to a form field, any subsequent Bricks Form action can consume it (e.g., include it in emails, pass it to webhooks, or store it via other actions).

Did this answer your question?