01441: FormsPlus not honoring step attribute for numbers

Summary: FormsPlus not honoring step attribute for numbers
Created: 2019-05-29 01:39
Status: Closed, resolved for recent versions
Category: Bug
From: JeffC?
Assigned:
Priority: 3
Version: 2.2.61
OS: Readynas/Apache/php 5

Description: Not sure if this is a Bug or an ask for a feature/change request. I've created a form using the Cookbook:FormsPlus, and specified a number. I am unable to enter any floating numbers. I've tried the following:

(:input number id="weight" step=".1" name="weight" value="165.00":)
(:input number step=".1" id="weight"  name="weight" value="165.00":)

In both cases the html renders thusly:

 <input type='number' name='weight' value='165.00' id='weight' class='inputbox' />

This is with Firefox as the browser.

Thanks!!!

Addendum, I now see that both version of the wiki markup are working here, I'm assuming that this must be related to either my php version or o/s. Any suggestions would be appreciated.

Final addendum, upgrading to the latest Pmwiki version resolved the issue. Thanks!

JeffC? May 29, 2019, at 06:49 PM

See also the documentation at PmWiki:Forms as now the HTML5 "input number" element and a few more are supported out of the box. Only enable the recipe if you require some of the inputs that are not already in the core, like datetime, week, range or color. --Petko May 29, 2019, at 07:39 PM