Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is the a way to change a exposed filter of the type "text" to "number" so that I can use the step up and down feature from that form element type?
Here is an example.
http://www.w3schools.com/html/tryit.asp?filename=tryhtml_input_number
Comment | File | Size | Author |
---|---|---|---|
#4 | Error.png | 43.08 KB | riddhi.addweb |
#2 | before-2.png | 10.03 KB | Dev1.addweb |
#2 | before-1.2.png | 32.75 KB | Dev1.addweb |
#2 | before-1.png | 35.67 KB | Dev1.addweb |
#2 | after-2.png | 10.31 KB | Dev1.addweb |
Comments
Comment #2
Dev1.addweb CreditAttribution: Dev1.addweb at AddWeb Solution Pvt. Ltd. commentedApply the patch & Select "Number" from Better Exposed Filter settings of particular field. This will change "text" field to "number".
html_5_number_input-2784595-2.patch
Comment #3
Dev1.addweb CreditAttribution: Dev1.addweb at AddWeb Solution Pvt. Ltd. commentedComment #4
riddhi.addweb CreditAttribution: riddhi.addweb at AddWeb Solution Pvt. Ltd. commentedHello Deepali,
Here, Your patch works well only for an integer value,if we write or add decimal value in exposed filter.
then it will not search the decimal value as result.
PFA screenshot for the same.
Thanks!
Comment #5
Neslee Canil PintoHi, there will be no more future development for 7.x branch. If you see this issue in 8.x, feel free to file an issue. Closing this as Closed(wont fix).