On 08/06/07, Brian Cassidy <[EMAIL PROTECTED]> wrote:
Hey Gang,
I must be doing something incorrect, but here's what I'm trying to
accomplish:
Typically i make submit buttons like this:
<input type="submit" value="Search" />
in the YAML config that gets translated to
- type: submit
value: Search
However, if something is incorrect in the rest of the form, when it gets
regenerated i get a blank submit button. Adding a name to the config
makes it work, but it'd prefer to omit that key-value pair from the form
data if i could.
- type: submit
default: Search
retain_default: 1
note that although 'value' will give the same result in this case,
it's probably best to get into the habit of using 'default', because
it does behave differently for some elements.
Carl
_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu