Rules

Rules connect Express form submissions to PDF templates and delivery behavior. A rule decides when a PDF should be generated, which template should be used, where the generated file should go, and what the submitter should see after a frontend submission.

Rules are the most complex part of FormPDF PRO. Work through the rule form from top to bottom: identify the form and template first, then configure conditions, then configure delivery.

Create an Automation Rule

Use this flow to create a new automation rule that can generate PDFs for submissions from a selected Express form.

  1. Open Dashboard > FormPDF PRO > Rules.
  2. Click Create Rule.
  3. Enter Rule name. This field is required.
  4. Optionally enter Description.
  5. Select Assigned form. This field is required. Selecting a form loads the available fields for the condition builder.
  6. Select PDF template. This field is required.
  7. Select Status. New rules default to Active.
  8. Configure the conditions in ConditionBuilder.
  9. Configure delivery in DeliveryBuilder.
  10. Click Save rule.

After success, the rule is saved and you are returned to the Rules list with a confirmation message.

Note: Delivery validation can block saving. Errors are shown on the form and the rule is not saved. Common causes include invalid delivery configuration, link delivery without File Storage, or File Storage being ordered after Email when the email needs a secure or plain link.

ConditionBuilder

Use ConditionBuilder to decide which submissions should trigger this rule.

  • Choose Always when every submission for the selected form should generate a PDF.
  • Choose When conditions match when only some submissions should generate a PDF.
  • In conditional mode, add condition rows using Select field…, Select operator…, and Value.
  • Use Add Condition to add rows.
  • Use Remove condition to remove rows.
  • Operators include equals, does not equal, contains, is greater than, is less than, is empty, and is not empty.

Note: Field choices depend on Assigned form. If no form is selected yet, the builder cannot load form fields.

is empty and is not empty do not use the Value field.

DeliveryBuilder

Use DeliveryBuilder to decide what happens after the PDF is generated.

Backend actions run on the server:

  • File Storage
    • Turn on Enabled.
    • Select File Manager folder.
    • Set Filename pattern. Filename patterns can include tokens.
  • Email
    • Turn on Enabled.
    • Set To recipients.
    • Optionally set CC recipients.
    • Optionally set Submitter email attribute.
    • Choose Attachment mode:
      • Attach PDF
      • Include link (secure)
      • Include link (plain)
    • Set Expiry in hours when using secure links.
    • Set Email subject.
    • Set Email body.

Submitter experience controls what the frontend visitor sees after a frontend form submission:

  • Default keeps the standard ConcreteCMS success message with no PDF access for the submitter.
  • Download link shows a download button on the success page.
  • Auto-download starts the PDF download automatically and keeps a visible fallback link.

Note: Manual dashboard test runs do not trigger the submitter experience. Submitter experience applies to frontend form submissions.

Secure and plain links require File Storage because FormPDF PRO needs a stored file to link to. If Email or submitter experience uses links, keep File Storage enabled and ordered before actions that need the stored file.

How Tokens Work

Tokens let you reuse submission and site values in delivery fields. They are commonly used in Filename pattern, Email subject, Email body, and email filenames.

Examples:

  • submission_{{ submission_id }}.pdf
  • Submission for {{ form_name }}
  • {{ download_link }} inside Email body when the email attachment mode uses a link.

Use Insert Token where it appears in the delivery builder. Available default tokens include Submission ID, Form Name, Date, Time, and Site Name. See Token Reference.

After creating a rule, use Test Run a Rule before relying on it for live submissions.

Edit an Existing Rule

Use this flow to change a rule's form, template, status, conditions, delivery actions, or submitter experience.

  1. Open Dashboard > FormPDF PRO > Rules.
  2. Find the rule you want to change.
  3. Click Edit.
  4. Review the pre-filled rule form.
  5. Update any of the same fields used when creating a rule:
    • Rule name
    • Description
    • Assigned form
    • PDF template
    • Status
    • ConditionBuilder
    • DeliveryBuilder
  6. Click Save rule.

After success, the rule is updated and you are returned to the Rules list with a confirmation message.

Note: Editing a rule affects future matching submissions. Existing logs and generated files are not rewritten.

If delivery validation fails, errors are shown on the form and the rule is not saved. Non-blocking delivery warnings can be shown after save.

ConditionBuilder

When editing a rule, ConditionBuilder loads the saved condition mode and rows.

  • Keep Always when the rule should apply to every submission for the assigned form.
  • Use When conditions match to narrow the rule to specific submission values.
  • Changing Assigned form changes the available condition fields. Review existing conditions after changing the form.

DeliveryBuilder

When editing a rule, DeliveryBuilder loads the saved backend actions and submitter experience.

  • Review whether File Storage is still enabled before using secure links, plain links, Download link, or Auto-download.
  • Review ordering when Email uses Include link (secure) or Include link (plain).
  • Review To recipients, Email subject, and Email body if the form or template has changed.

How Tokens Work

Tokens in an existing rule are resolved when the rule runs, not when you save the form. If you change Assigned form, verify that the tokens in Filename pattern, Email subject, and Email body still make sense for the new form context.

Use Insert Token to add supported tokens where available. See Token Reference.

After editing a rule, use Test Run a Rule to verify the updated behavior.

Test Run a Rule

Use this flow to manually execute a rule against an existing submission before relying on it for live form submissions.

  1. Open Dashboard > FormPDF PRO > Rules.
  2. Find the target rule.
  3. Click the manual test vial icon.
  4. Review the submissions table for the rule's assigned form.
  5. Find the submission you want to test.
  6. Click Run rule for that submission.

After success, FormPDF PRO returns you to the test run page with a result message. A log entry is created for the manual execution.

Note: The test run page shows a submissions table with a per-row Run rule button. Use Execution Logs for duration, error details, and delivery-action results.

What Runs During a Test

The manual run executes the selected rule for the selected submission and forces execution even if a previous success log exists for the same rule and submission.

Manual test runs call rule execution directly with force enabled. They bypass normal condition matching and idempotency, and they do not run the submitter experience.

The execution path renders HTML, generates the PDF, and runs the configured delivery pipeline. Use Execution Logs to inspect the full result after a test run.

Success and Failure States

  • Success: the page returns with a success message, and Execution Logs contains a success record.
  • Failure: the page returns with an error message, and Execution Logs can contain failure details when execution reached logging.
  • No submissions: the page shows No submissions found for form handle: … and there is no Run rule action. Submit the related Express form first, then return to Test run.

ConditionBuilder

The test run page does not edit conditions. Review conditions from Edit before testing if you need to confirm why a rule should or should not run for normal frontend submissions.

DeliveryBuilder

The test run uses the rule's saved delivery configuration. If File Storage or Email is enabled, those backend actions can run during the manual test.

Note: Submitter experience does not run during dashboard manual tests. Test frontend submitter behavior by submitting the actual Express form on the site.

How Tokens Work

Tokens are resolved using the selected submission's data and the current rule configuration. This is useful for verifying Filename pattern, Email subject, Email body, and generated file names before the rule handles live submissions.

Use Execution Logs and Submissions to confirm the resolved output. See Token Reference for supported token syntax.

See Getting Started for the full first setup path and Templates for template validation and preview.

Manage Rule Lifecycle

Use this flow to pause, activate, or delete rules from the Rules list.

  1. Open Dashboard > FormPDF PRO > Rules.
  2. Find the rule you want to manage.
  3. Use the row actions:
    • The status toggle icon pauses active rules and activates non-active rules.
    • Edit opens the full rule form.
    • The manual test vial icon opens the manual test run page.
    • Delete permanently deletes the rule.

After success, you are returned to the Rules list with a confirmation message. Status toggles and deletion are submitted with POST requests and CSRF protection.

Warning: Delete is a hard delete. When you click Delete, the browser asks: “Are you sure you want to delete this rule? This action cannot be undone.”

Status Behavior

  • Active rules are eligible to run for matching frontend submissions.
  • Paused rules are not active until reactivated.
  • Archived rules can be activated from the list with the status toggle icon.
  • There is no archive action on the Rules list. To archive a rule, open Edit and change Status.

ConditionBuilder

Lifecycle actions do not change condition logic. Use Edit when you need to review or change Always versus When conditions match.

DeliveryBuilder

Lifecycle actions do not change delivery configuration. Use Edit when you need to review File Storage, Email, or submitter experience settings before reactivating a rule.

How Tokens Work

Lifecycle actions do not change tokens. Existing token patterns remain in the saved rule and are resolved the next time the rule runs.

See Token Reference for supported token syntax.