Closed (fixed)
Project:
Webform
Version:
6.x-3.18
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
24 Oct 2012 at 16:15 UTC
Updated:
18 Aug 2013 at 02:21 UTC
Jump to comment: Most recent file
I was looking for the disabled option for a Numeric field, and couldn't find it - then realized that Numeric fields don't actually have that option as yet (6.x-3.18). As for other field types, I think there's a good rationale for having the option to disable a numeric field. In this case, I am populating some numeric fields by adding up others - so the target fields shouldn't be able to be edited.
Related tickets:
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | webform-numeric_disable_option-1822010-1.patch | 1.31 KB | dbassendine |
| #1 | webform-numeric_disable_option-1822010-0.patch | 1.23 KB | dbassendine |
Comments
Comment #1
dbassendine commentedHere's a patch which adds this option to components/number.inc, based on textfield.inc. Patch is against 6.x-3.18.
Comment #2
dbassendine commentedThis patch applies properly against 6.x-3.x
Comment #3
dbassendine commentedMarking for review.
Comment #4
quicksketchThanks! I changed one small part that changes the way the field is displayed when it's in its "unfiltered" form:
This affects the display of Form Builder only, which is the only situation where $filter is FALSE. The disabled status gives the field additional visual weight. This matches the implementation of textfields.
Committed to all branches.