1

I am working with Form API to create a customized form shown in a block. Most of the fields are textfields.

I need a +/- feature for a numeric textfield, i.e.:

enter image description here

Is there an existing field like the above I can use?

  • 2
    As an alternative, why not use a standard html5 number field instead? That already has an up/down button spinner provided by the browser – Clive Jun 26 '14 at 10:57
1

Try the Stepper Field module

The Stepper Field module is based in a plugin for jQuery UI called jQuery.ui.Spinner and provides a new steps widget that can be added to any Integer field.

Here is the image

enter image description here

0

There is SpinInt module for this

Spinint provides a simple up down arrow widget for integer number fields.

Not the answer you're looking for? Browse other questions tagged or ask your own question.