This patch makes it possible to alter the value of a possible submission component value when being submitted.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | interdiff-2-4.txt | 1.98 KB | paulvandenburg |
| #4 | webform-textfield_to_uppercase_option-3002260-4.patch | 2.04 KB | paulvandenburg |
Comments
Comment #2
ruudvanoijen commentedThe patch
Comment #4
paulvandenburg commentedI don't know why that patch failed, the test results all seem to have passed?
However I did find some stuff that could be better.
- The hook pre save is not the best place to perform the conversion.
Instead use a value_callback on the element so the converted value is converted everywhere, both on the preview page as well as navigating back and forth on a multi page form.
- I think the message for the new checkbox could be more clear.
I've made the mentioned modifications in this patch.
Comment #6
tvoesenek commentedPatch works as described.
Comment #7
liam morlandThanks for the patch.
In webform_textfield_uppercase_value(),
$inputshould not have a default value because it is followed by a parameter that does not have one. The new feature needs a test. Please run a coding standards check on the patch.Comment #8
liam morlandDrupal 7 is no longer supported. If this applies to a supported version, please re-open.