The DNext Form Builder module enhances Drupal's form capabilities by integrating with the react-jsonschema-form NPM package, providing a powerful and flexible way to build forms based on JSON schema.
Ensure your Drupal environment meets the following requirements:
- Drupal 10 or higher.
- Webform module installed and enabled.
- Basic knowledge of JSON schema.
DNext Form Builder extends the Webform JSON Schema module, enabling the use of Drupal webforms with the react-jsonschema-form NPM package. It adds additional properties to a selection of standard Drupal form fields and removes HTML markup from field validation messages for a cleaner user experience.
Extended fields include:
- textfield
- textarea
- number
Basic properties for these fields:
- minlength
- maxlength
- rows
- pattern
UI properties for enhanced user interaction:
- placeholder
- autocomplete
- readonly
- disabled
To further extend field properties:
- Modify
FIELDS_PROPERTIES
orFIELDS_UI_PROPERTIES
arrays in theTransformerExtended
class within the DNext - Form Builder module. - Develop custom Drupal webform fields implementing
JsonSchemaElementInterface
from the Webform JSON Schema module for additional customization.