On Tue, May 15, 2007 at 11:19:00AM -0400, The Editor wrote:
> On 5/15/07, noskule <[EMAIL PROTECTED]> wrote:
> > The problem I have is that I generate a list of issueforms and the
> > values of the dropdownlists of all forms are the same as in the first
> > form. Textarea and text fiels are woring as they should.
>
> I don't think PmWiki has any way of setting default values for
> specific forms. Pm mentioned that in an earlier post, if I recall
> correctly.
It will be possible to do this in beta46 or beta47.
It will also be possible to set default values in individual
input controls:
(:input text name="from" default="Your name here" :)
would display "Your name here" as the default value for
the text field only if the value hasn't been set somewhere
else (by a previous input default statement, or in the
$InputValues array). Thus, one can write
(:input form ... :)
(:input default request=1:)
(:input text from default="{$Author}" :)
(:input text subject default="Subject" :)
(:input textarea text :)
(:input submit:)
(:input end:)
and the "from" and "subject" fields will take their
values from the previous form submitted ("request=1"),
or use {$Author} and "Subject" as their values if no
default values were supplied.
Pm
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users