Add support to mask input field numbers

Created on 30 November 2023, over 1 year ago

Problem/Motivation

Currently, we don't have support to mask input field numbers. Should be nice if have this support.

Proposed resolution

On webform calculation settings, we could add another form setting for the user to select the mask to be applied to the field calculation result.
The image below is the current element configuration, we could add mask input settings below the round result setting for example.

Remaining tasks

Investigate which mask input library should we use or even if the Webform already has some module that does and we can integrate with our module.
If we need to add library we could follow the steps below to support this feature.

  1. add the dependency library
  2. Update both custom elements FormCalculationElement, FormCalculationMarkupElement adding the library configuration needed, like export the data mask settings to the element.
  3. Update the WebformCalculationNumber and WebformCalculationMarkup webform elements adding the configuration needed to use the mask input settings.
Feature request
Status

Active

Version

1.0

Component

User interface

Created by

🇧🇷Brazil joaopauloc.dev

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024