Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Webform Numeric Element Validation

No security coverage Under active development 2 sites

This module enhances Webform's numeric input fields by providing more flexible validation. It allows for settings related to locale-dependent numbers, leading zeros, and precision, which are not available in the default Webform textfield element. You would use this module when you need more advanced control over how numbers are entered and validated within your Webform submissions.

This module is supposed to provide a bit more flexibility by being able to set properties in form build. The basic numeric elements provided in Webform don't offer enough functionality that is expected from numeric input fields. The fields have little flexible validation for numbers, including support for locale dependent numbers and leading zeros, built in settings for precision, etc.

Features

Here, answer the following questions: What is the basic functionality? What unique features does enabling this project add? When and why would someone use this module? What use cases are there?

An extension to the Webform Textfield element that allows flexibility for numeric inputs.

Features include:

  • Validation for numeric value, min/max, precision and leading zeros

Post-Installation

Once installing the module using Composer, the module should be accessible through the Drupal user interface. Navigate to Extend > Search up "Webform Numeric Element Validation" and Install.

Once installed, you should be able to reference the element by adding it to a Webform. Properties must be added through YAML as UI component is not yet available.

Additional Requirements

Dependent on Webform

Similar projects

The Formatted Number Input module, which works with Drupal core number fields and not Webform fields.
https://www.drupal.org/project/formatted_number_input

Supporting this Module

Contribute

Community Documentation

Drupal 10–11

Ask your assistant about Webform Numeric Element Validation

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

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Sep 2025
Latest release
11 months ago
Releases (12 mo)
2
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
1.0.3 Stable 10–11 Oct 20, 2025
1.0.2 Stable 10–11 Oct 20, 2025
1.0.1 Stable 10–11 Oct 2, 2025
1.0.0 Stable 10–11 Sep 25, 2025