Summary of element values submission limits on an example webform

This project is not covered by Drupal’s security advisory policy.

Allows for placing a limit on the total number of values a webform element can accept across all submissions.

Features

- Place limits on any multi-value webform element (including multi-value composite elements)
- Customize action taken when the limit is reached (remove element / disable element / nothing)
- Customize messaging surrounding the values-limited element (including message placement)
- Monitor current progress of all values-limited elements in the webform on a dedicated results sub-tab

Post-installation

1. Set up a webform with a multi-value input (set "Allowed number of values" to unlimited or greater than 1)
2. Go to Settings -> Emails / Handlers for the webform and add a new "Element values limit" handler
3. Under "Limit settings", select the multi-value element you wish to limit, how many values (across all submissions) it should be limited to, and what action to take once the limit is reached.
4. Configure messages and message placement under "Message settings". Include dynamic placeholder tokens like "@limit", "@total", "@remaining", and "@label" in your messages if desired.

Additional requirements

The Webform module must be installed.

Similar projects

Webform includes a sub-module, Webform Options Limit, which is similar, but places limits on specific options within an element. Webform Options Limit served as a template when writing this module, and as such, the two are similar in many ways.

Supporting organizations: 
Module creation

Project information

Releases