Bug with Default ListField?
Clemens Robbenhaar <robbenhaar-WaVJUzJ3u31Wk0Htik3J/[email protected]> Wed, 17 Mar 2004 21:41:34 +0100
| Newsgroups | gmane.comp.web.zope.formulator.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Carroll, > Using Formulator 1.6.2, I have created a ListField, which is pulling data > from an SQL query without any issues. > > I cannot set the Default value, however. > > In fact, I cannot pull the default value, even when I use a generic > ListField that has hardcoded items listed. > > I put this in Items > > '1', 'ZZZ' | > '2', 'XXX' | > '3', 'WWW' | I guess You mean either: 1 | ZZZ 2 | XXX 3 | WWW or: ZZZ | 1 XXX | 2 WWW | 3 You do not need any quotes in the Items field when editing via the ZMI; the Field knows there are strings anyway. In this case You should be able to put: WWW (in the first case) or: 3 (in the second case) to be able to select the third item by default. At least it works for me when I tests this. Hope this helps, Clemens