Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

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

Activity

Total releases
4
First release
Sep 2025
Latest release
8 months ago
Releases (12 mo)
4 ▲ from 0
Maintenance
Slowing

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