Place label after checkbox for boolean types

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

Place label after checkbox for boolean types

Philipp Wagner
Hi,

it is possible in Orbeon Forms to place the label after the checkbox for
xf:input elements bound to a node with xs:boolean type?

So

<xf:input type="xs:boolean" ref="data">
   <xf:label>some label</xf:label>
</xf:input>

would render as

[ ] some label

instead of

some label [ ]

as it is right now.

Philipp


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Place label after checkbox for boolean types

Tambet Matiisen
You can use "for" attribute:

<xf:input ref="data" id="data"/> <xf:label for="data">some label</xf:label>

See this for more:
http://wiki.orbeon.com/forms/doc/developer-guide/xforms-other-extensions#TOC-Standalone-label-hint-help-and-aler

   Tambet

On 15.03.2012 5:50, Philipp Wagner wrote:

> Hi,
>
> it is possible in Orbeon Forms to place the label after the checkbox
> for xf:input elements bound to a node with xs:boolean type?
>
> So
>
> <xf:input type="xs:boolean" ref="data">
> <xf:label>some label</xf:label>
> </xf:input>
>
> would render as
>
> [ ] some label
>
> instead of
>
> some label [ ]
>
> as it is right now.
>
> Philipp


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Place label after checkbox for boolean types

Philipp Wagner
Am 15.03.2012 04:44, schrieb Tambet Matiisen:
> You can use "for" attribute:
>
> <xf:input ref="data" id="data"/> <xf:label for="data">some label</xf:label>

Works as expected, thanks!

Philipp


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws