[pmwiki-users] Form Input select conditional nesting

Jiri Hladůvka / OBUTEX admin at obutex.com
Thu Jan 18 04:19:09 CST 2007


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

> On Wed, Jan 17, 2007 at 10:27:52AM +0100, Jiri wrote:
>   
>> in certain conditions it is necessary to customize
>> input select control.
>> It works only when (:if condition:) is used only once
>> and only as the first select option.
>> Otherwise the control display is parsed into so many
>> controls how many times the source sequence for the same control name
>> is interrupted.
>>
>> Any solution ?
>>     

-- 
OBUTEX s.r.o
Ing.Jiří Hladůvka
Zlatovská 22
911 01 Trenčín

tel.: +421 (0)32 6587000
mailto:admin at obutex.com

http://www.obutex.com






More information about the pmwiki-users mailing list