[pmwiki-users] Form Input select conditional nesting

The Editor editor at fast.st
Thu Jan 18 05:02:36 CST 2007


On 1/18/07, Jiri Hladůvka / OBUTEX <admin at obutex.com> wrote:
> Hi all,
> here is a link to  the example how to handle the source text
> when you need to display a selectbox differently under different conditions.
> http://www.pmwiki.org/wiki/Test/InputSelectNestingSource
>
> The example shows the nesting possibility, too.
> You will appreciate the solution when you use the same options values
> and labels in more pages.
> The source of the options definitions can be in one page only.
>
> Be careful with following:
> - The (:if ...:) and the (:include...:) commands *must* be placed
> as the starting lines in the (:input select...:) sequence block.
>
> - in the (:input select...:) sequence you cannot enter empty lines
> or other text otherwise you get displayed more select boxes i.e.
> (:input select  name="mybox"...:)
> [[#somelabel]](:input select name="mybox"...:)
> will produce 2 selectboxes even if the options have the same name.
>
> Best regards
> Jiri



Jiri mentioned to me you could also use this approach to do nested
conditionals.  Fascinating!  Great discovery Jiri!

Cheers,
Dan

PS.  Perhaps this could be a cookbook page...


More information about the pmwiki-users mailing list