Login  Register

Re: Adding a hint to a label

Posted by Alessandro Vernet on Jan 05, 2010; 3:38am
URL: https://discuss.orbeon.com/Adding-a-hint-to-a-label-tp990582p998823.html

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