number_element
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
Recommended modules/libraries
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