There should be an action to set the default value of a form element while the form is built. I will work on a patch and publish it here tomorrow.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | rules-545026.patch | 5.39 KB | klausi |
| #3 | rules-545026.patch | 5.49 KB | klausi |
| #1 | rules-545026.patch | 2.97 KB | klausi |
Comments
Comment #1
klausiAnd here it is. Support for CCK fields is included, as they save #default_value as array.
Comment #2
fagoLooks good, a possibility to specify multiple default values (think of a multiple select, checkboxes) would be nice though.
Comment #3
klausiNew patch:
* removed some useless white spaces (coding style)
* multiple value support
* adapted CCK support to also allow multiple values
Comment #4
klausiSome small fixes that shorten the action code, thx to fago for the review via Jabber.
Comment #5
fagoCool that there is multiple value support now :) Also code looks fine (and did before), but now it's even a bit shorter!
Comment #6
klausiCommitted to CVS.
Comment #7
Parkes Design commentedAwesome... this looks like a very useful patch.