Question
I have defined a
TWikiForm in
WebTopicEditTemplate and need a text field to default to a value. For example Attrib=UNDEFINED.
Do I need to set Attrib=UNDEFINED in the Form? or in
WebTopicEditTemplate? Or am I barking up the wrong tree.
Environment
--
BobDole - 23 Sep 2003
Answer
TWikiForms#Defining_a_Form_in_One_Topic describes that the
Values column in the form definition table lists the possible values for your form - at least with respect to radio buttons and check boxes. In these cases, the first value listed will be the default value selected. For
type=text there is no default value set, but what happens if you specify one (I haven't tried)?
If your form will be used on many pages, it may be an idea to create a template topic that has suitable form values selected and filled in. You can do this in the
WebTopicEditTemplate if all your pages should default to these values.
--
TorbenGB - 24 Sep 2003
As Torben said, define the default values in a template topic. Default values for text fields cannot be set in the form definition topic.
--
PeterThoeny - 25 Sep 2003