[pmwiki-users] PmForms Default value for input

DaveG pmwiki at solidgone.com
Fri Dec 26 23:38:31 CST 2008

When creating a form template, specifying a 'default' value overrides 
any values brought in from source:

(:input pmform target=tmp:)
(:input default source={*$FullName} :)
(:input default request=1 :)
Date: (:input text $:entrydate size=25 default="{(ftime)}":)
(:input submit value="Submit":)
(:input end:)

(Use this post, for example)
(:template defaults saveto="{*$FullName}" :)
(:template defaults savevars=$:entrydate :)

And in config.php:
$PmForm['tmp'] = 'saveto={$FullName} form=#entry-form fmt=#entry-post';

Above, the date is filled correctly on first load, but subsequent uses, 
the default overrides the initial value.

Is this a bug, or am I using this wrong?

  ~ ~ Dvae

More information about the pmwiki-users mailing list