Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

plone.formblock

A Plone add-on supporting the creation of forms inside blocks.

Features

Send submissions by email

When the Send action is enabled on a form block, each submission is emailed to the configured recipients. The subject, sender and recipients are configured on the block, and the submitted values are rendered into the message body.

Store submissions

When the Store data action is enabled, each submission is stored on the content object. Stored submissions can be reviewed, exported to CSV and cleared directly from the form block editor in Volto.

Captcha support

Captcha support requires a specific name adapter that implements ICaptchaSupport. This product contains implementations for:

  • HCaptcha (plone.formwidget.hcaptcha)
  • Google ReCaptcha (plone.formwidget.recaptcha)
  • Custom questions and answers (collective.z3cform.norobots)
  • Honeypot (collective.honeypot)

Each implementation must be included, installed and configured separately.

To include one implementation, you need to install the egg with the needed extras_require:

  • plone.formblock[recaptcha]
  • plone.formblock[hcaptcha]
  • plone.formblock[norobots]
  • plone.formblock[honeypot]

During the form post, the token captcha will be verified with the defined captcha method.

Honeypot configuration

If honeypot dependency is available in your installation, the honeypot validation is enabled and selectable in forms.

Default field name is protected_1 and you can change it with an environment variable. See the collective.honeypot configuration for details.

Attachments upload limits

Forms can have one or more attachment field to allow users to upload some files.

These files will be sent via mail, so it could be a good idea setting a limit to them. For example if you use GMail as mail server, you can't send messages with attachments > 25MB.

There is an environment variable that you can use to set that limit (in MB):

export FORM_ATTACHMENTS_LIMIT=25

By default this is not set.

The upload limit is also passed to the frontend in the form data with the attachments_limit key.

Content-transfer-encoding

It is possible to set the content-transfer-encoding for the email body, settings the environment variable MAIL_CONTENT_TRANSFER_ENCODING:

export MAIL_CONTENT_TRANSFER_ENCODING=base64

This is useful for some SMTP servers that have problems with quoted-printable encoding.

By default the content-transfer-encoding is quoted-printable as overridden in Products.MailHost

Email subject templating

You can also interpolate the form values to the email subject using the field id, in this way: ${field_name}

Header forwarding

It is possible to configure some headers from the form POST request to be included in the email's headers by configuring the httpHeaders field in your Volto block.

The @plone/volto-form-block package allows the following headers to be forwarded:

  • HTTP_X_FORWARDED_FOR
  • HTTP_X_FORWARDED_PORT
  • REMOTE_ADDR
  • PATH_INFO
  • HTTP_USER_AGENT
  • HTTP_REFERER

Installation

Install plone.formblock with uv:

uv add plone.formblock

Or with pip:

pip install plone.formblock

Create the Plone site.

make create-site

Contribute

Prerequisites ✅

Installation 🔧

  1. Clone this repository.

    git clone git@github.com:plone/form-block.git
    cd form-block/backend
    
  2. Install this code base.

    make install
    

License

The project is licensed under GPLv2.

Credits and acknowledgements 🙏

This add-on is built on top of the awesome collective.volto.formsupport developed by RedTurtle Technology.

The current version of the codebase was developed by kitconcept GmbH and sponsored by the Fachhochschule Nordwestschweiz.

Generated using Cookieplone (2.0.0b3) and cookieplone-templates (6678734) on 2026-06-10 18:43:35.112495. A special thanks to all contributors and supporters!

Metadata

Release files for plone.formblock 1.0.0a4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plone.formblock 1.0.0a4
File Size Uploaded Provenance Actions
plone_formblock-1.0.0a4.tar.gz 138.8 kB Without provenance Details for plone_formblock-1.0.0a4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for plone.formblock 1.0.0a4
File Interpreter ABI Platform Actions
plone_formblock-1.0.0a4-py3-none-any.whl Python 3 none any Details for plone_formblock-1.0.0a4-py3-none-any.whl

Total release size: 231.8 kB

Release files / plone_formblock-1.0.0a4.tar.gz

Download URL plone_formblock-1.0.0a4.tar.gz
Size 138.8 kB
Tags Source
SHA-256 checksum
How to use checksums
17842a80d789584ea0f60625ed9e2d0056df704612198328edc856efe80910c4
BLAKE2b-256 checksum
How to use checksums
d7f666b4dce37473ea17cb14160bd57689e8ab2a465734c1a50f6950479761b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / plone_formblock-1.0.0a4-py3-none-any.whl

Download URL plone_formblock-1.0.0a4-py3-none-any.whl
Size 93.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0e6c3c38a1c73a4b7656abb30fd3a554bb6a57f499c4c40141fa6e3c807c0e59
BLAKE2b-256 checksum
How to use checksums
95fb7b109585e0844b9fe2c7e4a6428925e75611a0aead81327ee6da72e36561
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for plone.formblock 1.0.0a4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page