RE: Limiting the selections in an xforms:select

Posted by Ryan Puddephatt on
URL: https://discuss.orbeon.com/Limiting-the-selections-in-an-xforms-select-tp32885p32891.html

Chris,
        The selected items are stored in one element with a comma space
'1','2' etc. as I recall

Count(tokenize(/some/element,',')) should get you the number of currently
selected items, you should be able to make the bind xpath from that

Ryan

Ryan Puddephatt
Software Engineer

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP

e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108

 

>-----Original Message-----
>From: Chris Bailey [mailto:[hidden email]]
>Sent: 21 February 2007 17:04
>To: [hidden email]
>Subject: [ops-users] Limiting the selections in an xforms:select
>
>Hi,
>
>A quick xforms question....
>
>I was wondering if there any way of restricting the number of
>selections that can be made with an xforms:select?
>
>I would like to allow users to, say, select between 2 and 5
>choices from a selection box or list. Is there a pure way of
>doing this (with something like an xforms:bind) or do I have
>to use a repeating group, move items to that group and
>implement the restrictions myself?
>
>Chris.
>
>
>



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws