Perch Form Template Tag perch:input type range
If using HTML5 this will display the HTML5 widget for range falling back to text in unsupporting browsers.
There are additional attributes to set for the validation.
Additional attributes for perch:input when using range
Attribute | Description |
---|---|
min | Number. Minimum value allowed |
max | Number. Maximum value allowed |
step | increments. e.g. if step=”2” and min=”1” only odd numbers will validate |
<perch:input type="range" id="pricerange" min="300" max="10000" step="100">