Adding a red asterix after the label of required input field

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

Adding a red asterix after the label of required input field

npujol73
Hi,

 Is there a way to do that? If there was a way to identify the label of a required field than this would work but

.....{ content: "*"; color: red; }

Is there a way to identify, in orbeon, the label of a required field using css?

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: Adding a red asterix after the label of required input field

Alessandro  Vernet
Administrator
Yes, see this example:

http://localhost:8080/orbeon/xforms-sandbox/sample/howto/error-summary

It is done with CSS, and note that you must be in "span" layout, which  
is not the default yet. You can set it by adding the following  
property to your properties-local.xml:

<property as="xs:string"  name="oxf.xforms.xhtml-layout" value="span"/>

Alex



On Jan 13, 2010, at 2:04 PM, npujol73 <[hidden email]> wrote:

>
> Hi,
>
> Is there a way to do that? If there was a way to identify the label  
> of a
> required field than this would work but
>
> .....{ content: "*"; color: red; }
>
> Is there a way to identify, in orbeon, the label of a required field  
> using
> css?
>
> Thanks
> --
> View this message in context: http://n4.nabble.com/Adding-a-red-asterix-after-the-label-of-required-input-field-tp1013391p1013391.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.com.
>
> --
> 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


--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: [ops-users] Adding a red asterix after the label of required input field

npujol73
thanks for your prompt reply. Just wondering what is the impact of
switching over to "span" mode? Is it better?

Thanks!

Nicolas

On Wed, Jan 13, 2010 at 8:30 PM, Alessandro  Vernet [via Orbeon Forms
(ops-users)] <[hidden email]> wrote:

> Yes, see this example:
>
> http://localhost:8080/orbeon/xforms-sandbox/sample/howto/error-summary
>
> It is done with CSS, and note that you must be in "span" layout, which
> is not the default yet. You can set it by adding the following
> property to your properties-local.xml:
>
> <property as="xs:string"  name="oxf.xforms.xhtml-layout" value="span"/>
>
> Alex
>
>
>
> On Jan 13, 2010, at 2:04 PM, npujol73 <[hidden email]> wrote:
>
>>
>> Hi,
>>
>> Is there a way to do that? If there was a way to identify the label
>> of a
>> required field than this would work but
>>
>> .....{ content: "*"; color: red; }
>>
>> Is there a way to identify, in orbeon, the label of a required field
>> using
>> css?
>>
>> Thanks
>> --
>> View this message in context:
>> http://n4.nabble.com/Adding-a-red-asterix-after-the-label-of-required-input-field-tp1013391p1013391.html
>> Sent from the ObjectWeb OPS - Users mailing list archive at
>> Nabble.com.
>>
>> --
>> 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
>
> --
> 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
>
>
> ________________________________
> View message @
> http://n4.nabble.com/Adding-a-red-asterix-after-the-label-of-required-input-field-tp1013391p1013558.html
> To unsubscribe from Adding a red asterix after the label of required input
> field, click here.
>
Reply | Threaded
Open this post in threaded view
|

Re: Re: Adding a red asterix after the label of required input field

Alessandro  Vernet
Administrator
Nicolas,

Yes, the span layout is new, and is better. If give you more flexibility to customize how things are showing up using CSS, and makes the markup generated for different controls more consistent. We haven't made it the default yet because there are still a few bugs we need to resolve with some rarely used components (like the tree). If you are starting a new application from scratch, I would really go with the span layout.

Alex



On Jan 13, 2010, at 7:20 PM, npujol73 <[hidden email]> wrote:

thanks for your prompt reply. Just wondering what is the impact of
switching over to "span" mode? Is it better?

Thanks!

Nicolas

On Wed, Jan 13, 2010 at 8:30 PM, Alessandro  Vernet [via Orbeon Forms
(ops-users)] <[hidden email]> wrote:

> Yes, see this example:
>
> http://localhost:8080/orbeon/xforms-sandbox/sample/howto/error-summary
>
> It is done with CSS, and note that you must be in "span" layout, which
> is not the default yet. You can set it by adding the following
> property to your properties-local.xml:
>
> <property as="xs:string"  name="oxf.xforms.xhtml-layout" value="span"/>
>
> Alex
>
>
>
> On Jan 13, 2010, at 2:04 PM, npujol73 <[hidden email]> wrote:
>
>>
>> Hi,
>>
>> Is there a way to do that? If there was a way to identify the label
>> of a
>> required field than this would work but
>>
>> .....{ content: "*"; color: red; }
>>
>> Is there a way to identify, in orbeon, the label of a required field
>> using
>> css?
>>
>> Thanks
>> --
>> View this message in context:
>> http://n4.nabble.com/Adding-a-red-asterix-after-the-label-of-required-input-field-tp1013391p1013391.html
>> Sent from the ObjectWeb OPS - Users mailing list archive at
>> Nabble.com.
>>
>> --
>> 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
>
> --
> 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
>
>
> ________________________________
> View message @
> http://n4.nabble.com/Adding-a-red-asterix-after-the-label-of-required-input-field-tp1013391p1013558.html
> To unsubscribe from Adding a red asterix after the label of required input
> field, click here.
>


View this message in context: Re: [ops-users] Adding a red asterix after the label of required input field
Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com.

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


--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet