Adding a hint to a label

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

Adding a hint to a label

Stephanie Hall (TT)

Hi all,

 

I have a question:  Is it possible to add a hint to label?  Like my project is going to display the control’s value in the control’s hint (since the text will be rather long) and we want to have a hint around the control’s label to say what the field is used for. 

 

So ideally I want:

 

                <xforms:input ref=”…”>

                                <xforms:label>

My label

                                                <xforms:hint>This is what this field does</xforms:hint>

                                </xforms:label>

                                <xforms:hint>The value</xforms:hint>

                </xforms:input>

 

Thanks!

Stephanie



--
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: Adding a hint to a label

Ethan Gruber
Hi Stephanie,

I believe xforms:hint should be a child of xforms:input, not xforms:label.  If you hover your mouse over the input the hint will display.  Is this what you're looking for?

Ethan

On Tue, Dec 29, 2009 at 3:51 PM, Stephanie Hall (TT) <[hidden email]> wrote:

Hi all,

 

I have a question:  Is it possible to add a hint to label?  Like my project is going to display the control’s value in the control’s hint (since the text will be rather long) and we want to have a hint around the control’s label to say what the field is used for. 

 

So ideally I want:

 

                <xforms:input ref=”…”>

                                <xforms:label>

My label

                                                <xforms:hint>This is what this field does</xforms:hint>

                                </xforms:label>

                                <xforms:hint>The value</xforms:hint>

                </xforms:input>

 

Thanks!

Stephanie



--
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
Reply | Threaded
Open this post in threaded view
|

RE: Re: Adding a hint to a label

Stephanie Hall (TT)

Hi Ethan,

 

No, I want to have one hint display when I mouseover the label and a different one when I mouseover the input.

 

 I was able to sort of do it by using <xforms:label><p title=”mytext”>mylabel</p></xforms:label> but I can’t control the style of the title attribute.

 

Thanks,
Stephanie

 

From: Ethan Gruber [mailto:[hidden email]]
Sent: Wednesday, December 30, 2009 11:24 AM
To: [hidden email]
Subject: [ops-users] Re: Adding a hint to a label

 

Hi Stephanie,

I believe xforms:hint should be a child of xforms:input, not xforms:label.  If you hover your mouse over the input the hint will display.  Is this what you're looking for?

Ethan

On Tue, Dec 29, 2009 at 3:51 PM, Stephanie Hall (TT) <[hidden email]> wrote:

Hi all,

 

I have a question:  Is it possible to add a hint to label?  Like my project is going to display the control’s value in the control’s hint (since the text will be rather long) and we want to have a hint around the control’s label to say what the field is used for. 

 

So ideally I want:

 

                <xforms:input ref=”…”>

                                <xforms:label>

My label

                                                <xforms:hint>This is what this field does</xforms:hint>

                                </xforms:label>

                                <xforms:hint>The value</xforms:hint>

                </xforms:input>

 

Thanks!

Stephanie



--
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
Reply | Threaded
Open this post in threaded view
|

Re: Adding a hint to a label

Alessandro  Vernet
Administrator
In reply to this post by Stephanie Hall (TT)
Stephanie,

On Tue, Dec 29, 2009 at 12:51 PM, Stephanie Hall (TT)
<[hidden email]> wrote:
> I have a question:  Is it possible to add a hint to label?  Like my project
> is going to display the control’s value in the control’s hint (since the
> text will be rather long) and we want to have a hint around the control’s
> label to say what the field is used for.

Like Ethan said, you can only have a <xforms:hint> for the control,
not for the label of the control. I am a bit puzzled as to what you
trying to do displaying the value of the input in the hint. If the
value is in the hint, then it won't be editable, right? Then wouldn't
you want to have an <xforms:output> instead? Would you like to have
the value displayed both in the text field, and next to it in a hint?

Alex
--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
My Twitter: http://twitter.com/avernet


--
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: Re: Adding a hint to a label

Stephanie Hall (TT)
Hi Alex,

We basically wanted a hint on the label to say "this input is for doing x" when you hover over the label and then when you hover over the input box, it displays the current value.  We do this because we have a very long value but we don't have that much screen real estate. :)

Thanks,
Stephanie

-----Original Message-----
From: Alessandro Vernet [mailto:[hidden email]]
Sent: Wednesday, December 30, 2009 7:15 PM
To: ops-users
Subject: [ops-users] Re: Adding a hint to a label

Stephanie,

On Tue, Dec 29, 2009 at 12:51 PM, Stephanie Hall (TT) <[hidden email]> wrote:
> I have a question:  Is it possible to add a hint to label?  Like my
> project is going to display the control's value in the control's hint
> (since the text will be rather long) and we want to have a hint around
> the control's label to say what the field is used for.

Like Ethan said, you can only have a <xforms:hint> for the control, not for the label of the control. I am a bit puzzled as to what you trying to do displaying the value of the input in the hint. If the value is in the hint, then it won't be editable, right? Then wouldn't you want to have an <xforms:output> instead? Would you like to have the value displayed both in the text field, and next to it in a hint?

Alex
--
Orbeon Forms - Web forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ My Twitter: http://twitter.com/avernet


--
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: Re: Adding a hint to a label

Markku Laine
Stephanie,


> We basically wanted a hint on the label to say "this input is for doing
> x" when you hover over the label and then when you hover over the input
> box, it displays the current value.  We do this because we have a very
> long value but we don't have that much screen real estate. :)

One option would be to use xforms:help for showing the instructions (this
input is for doing x) and xforms:hint for displaying the current value.


-Markku


--
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: Adding a hint to a label

Alessandro  Vernet
Administrator
In reply to this post by Stephanie Hall (TT)
Stephanie,

I see. You could do this by combining:

1) An <xforms:output> bound to the "label" with the hint being the
actual "hint" you want to show.
2) An <xforms:input> with both the the control and the label bound to the value.

Now replacing all your <xforms:input> with this combination would be
painful, but you can create an XBL component that exposes this
combination as a new component. Does that sound like something that
could work for you?

Alex

On Monday, January 4, 2010, Stephanie Hall (TT)
<[hidden email]> wrote:

> Hi Alex,
>
> We basically wanted a hint on the label to say "this input is for doing x" when you hover over the label and then when you hover over the input box, it displays the current value.  We do this because we have a very long value but we don't have that much screen real estate. :)
>
> Thanks,
> Stephanie
>
> -----Original Message-----
> From: Alessandro Vernet [mailto:[hidden email]]
> Sent: Wednesday, December 30, 2009 7:15 PM
> To: ops-users
> Subject: [ops-users] Re: Adding a hint to a label
>
> Stephanie,
>
> On Tue, Dec 29, 2009 at 12:51 PM, Stephanie Hall (TT) <[hidden email]> wrote:
>> I have a question:  Is it possible to add a hint to label?  Like my
>> project is going to display the control's value in the control's hint
>> (since the text will be rather long) and we want to have a hint around
>> the control's label to say what the field is used for.
>
> Like Ethan said, you can only have a <xforms:hint> for the control, not for the label of the control. I am a bit puzzled as to what you trying to do displaying the value of the input in the hint. If the value is in the hint, then it won't be editable, right? Then wouldn't you want to have an <xforms:output> instead? Would you like to have the value displayed both in the text field, and next to it in a hint?
>
> Alex
> --
> Orbeon Forms - Web forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ My Twitter: http://twitter.com/avernet
>
--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
My Twitter: http://twitter.com/avernet


--
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