Values of checkbox

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Values of checkbox

r.pecori
Hi,

I tried putting string with white spaces as value of checkbox options but it gives me an error and the spaces must be replaced by hypen or other charachters. how can I set string with white spaces in checkbox values?

thank you
Reply | Threaded
Open this post in threaded view
|

Re: Values of checkbox

Eric van der Vlist
Hi,

Le mercredi 28 août 2013 à 05:25 -0700, r.pecori a écrit :
> Hi,
>
> I tried putting string with white spaces as value of checkbox options but it
> gives me an error and the spaces must be replaced by hypen or other
> charachters. how can I set string with white spaces in checkbox values?

Short answer: you can't ;) ...

Longer version: checkboxes are displayed by Orbeon forms as xf:select
controls with a "full" appearance. xf:select controls are designed to
let users chose zero or more values which are stored as space separated
strings and since whitespaces are used as separators they can't be used
within values. Note that you can still include whitespaces in the labels
which are displayed to users.

Hope this helps.

Eric

> thank you
>
> --
> View this message in context: http://discuss.orbeon.com/Values-of-checkbox-tp4657213.html
> Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com.
>


--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].