Drupal is a registered trademark of Dries Buytaert

number_element

3 sites No security coverage
View on drupal.org

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

Activity

Total releases
4
First release
Sep 2025
Latest release
4 months ago
Release cadence
8 days
Stability
100% stable

Release Timeline

Releases

Version Type Release date
1.0.3 Stable Oct 20, 2025
1.0.2 Stable Oct 20, 2025
1.0.1 Stable Oct 2, 2025
1.0.0 Stable Sep 25, 2025