specifying "value" in Formulator form
Hi everyone, Is it possible, using the uber cool Formulator product, to specify an initial value for a form field. For example: <input type="text" name="spam" value="eggs"> would draw an input box with "eggs" already filled in. -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.org | http://www.zope.com W. St. Paul, MN | | http://slashdot.org wilson@visi.com | <dtml-var pithy_quote> | http://linux.com
Yes it can. I believe that is the "default" field in Formulator. Please join the Formulator mail list to post follow-ups. -Trevor
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Timothy Wilson Sent: Monday, October 29, 2001 4:36 PM To: Zope listserv Subject: [Zope] specifying "value" in Formulator form
Hi everyone,
Is it possible, using the uber cool Formulator product, to specify an initial value for a form field.
For example:
<input type="text" name="spam" value="eggs">
would draw an input box with "eggs" already filled in.
-Tim
-- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.org | http://www.zope.com W. St. Paul, MN | | http://slashdot.org wilson@visi.com | <dtml-var pithy_quote> | http://linux.com
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
There are two ways, depending on what you want: 1/ If the default value is always the same then simply edit the properties for the "spam" StringField and put "eggs" in the default field. 2/ If you do not know what the default will be until runtime then use the StringField's override properties to specify the name of a method to call for the default value. That method should return a string. This is all described in the help. Cheers, Matt On Mon, 2001-10-29 at 21:36, Timothy Wilson wrote:
Hi everyone,
Is it possible, using the uber cool Formulator product, to specify an initial value for a form field.
For example:
<input type="text" name="spam" value="eggs">
would draw an input box with "eggs" already filled in.
-Tim
-- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.org | http://www.zope.com W. St. Paul, MN | | http://slashdot.org wilson@visi.com | <dtml-var pithy_quote> | http://linux.com
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
Matt Goodall -
Timothy Wilson -
Trevor Toenjes