[pmwiki-users] (:input select ... :) markup prototype
The Editor
editor at fast.st
Sun Dec 24 05:19:02 CST 2006
On 12/24/06, The Editor <editor at fast.st> wrote:
> Finally got around to trying out the default value for select boxes.
> But can't seem to get it to work. Works great for radio boxes though.
> Here's the snippet I'm trying:
>
> Day of the Week:
> (:input default weekday "{$:weekday}":) //zapdata stores 0,1,2, etc.
> (:input select name=weekday 0 Sunday:)
> (:input select name=weekday 1 Monday:)
> (:input select name=weekday 2 Tuesday:)
> (:input select name=weekday 3 Wednesday:)
> (:input select name=weekday 4 Thursday:)
> (:input select name=weekday 5 Friday:)
> (:input select name=weekday 6 Saturday:)
>
> Any help that could be given would be appreciated. I noticed there
> are no examples of default values for select boxes at
> http://www.pmwiki.org/wiki/Cookbook/InputDefault. Is this not added
> yet?
>
> Cheers,
> Dan
Never mind, the code below works. The code I used did not have proper
line breaks because I was embedding it in a cell using simple tables.
Managed to do a work around. Works great! Thanks again Pm!
Cheers,
Dan
More information about the pmwiki-users
mailing list