Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-63855

Support 'min' and 'max' values in the <f:number> tag

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • core
    • None
    • 2.286 released 30 Mar 2021, 2.289.1

    Description

      The <f:number> tag should support the 'min' and 'max' properties that <input type="number"> supports.

      This will provide a modicum of client-side validation for constrained number fields, and limit the stepper buttons in the configuration UI, giving the user a stronger hint about the range of acceptable values.

      Example:

       

      <f:entry field="foo">
        <f:number min="10" max="100" />
      </f:entry>

      Will be rendered into an input tag like:

      <input type="number" ...other properties... min="10" max="100">
      

      Attachments

        Issue Links

          Activity

            People

              benebsiny Benny Cheng
              chriskilding Chris Kilding
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: