Add a Number setting type

Created on 14 February 2020, over 5 years ago
Updated 2 September 2025, 11 days ago

We're using this module for a project and came across the need for a "number" setting type.

Of course you can use a textfield instead, but rendering a input of type=number allows us to add some native client-side validation and prevent wrong data from reaching the twig template (basically, passing a string instead of a number).

The patch attached adds a plugin for a Number setting.

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇪🇸Spain idiaz.roncero Madrid

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024