Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Webform Element Values Limit

No security coverage Under active development 8 sites

Part of the Webform ecosystem · 225 projects

This module adds the ability to limit the total number of values a webform element can accept across all submissions. You can configure what happens when the limit is reached and customize messages displayed to users.

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.

Ask your assistant about Webform Element Values Limit

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Mar 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
1.0.0-beta2 Pre-release 9–10 Mar 13, 2024
1.0.0-beta1 Pre-release 9–10 Mar 13, 2024
1.0.x-dev Dev 9–10 Mar 13, 2024