Re: Change Default font color / style for readonly field
Posted by
nelsontsang on
URL: https://discuss.orbeon.com/Change-Default-font-color-style-for-readonly-field-tp32659p32663.html
Hello Alex,
Yes, I'm thinking of the input fields (xforms:input). The case is, for example, I have some
fields which do the auto calculation in the form which is make read-only. However, it become
grey out that is not what I want (since the grey color is a little bit hard to read in my form.)
also, for another example, user will read the form in read-only mode, the entire form cannot be
changed, in this case, the text in the form become light grey. it is hard to read and not nice for
the user. All I want to do is to change the font color or the style of the input boxes.
I can use (xforms:output) in case 1, but it look a little bit odd as those will display without the
boxes. For case two, I have no idea how to make it work.
--
Nelson.
On 2/4/07, Alessandro Vernet <[hidden email]> wrote:
Nelson,
Are you talking about input fields specifically (xforms:input)? Or are
you talking about other controls? If it is text fields, don't you want
the user to have some visual indication that the field is read-only?
Alex
On 2/3/07, Nelson Tsang <[hidden email]> wrote:> Erik,
>
> Thanks a lot, however, I'm using IE, unfortunately. :(
> is there any workaround for IE user instead?
>
> Best regards,
> --
> Nelson.
>
>
> On 2/2/07, Erik Bruchez <
[hidden email]> wrote:
> >
> > Nelson,
> >
> > What browser are you using? IE won't allow you to style read-only
> > controls for example.
> >
> > But you are not using the right classes anyway. Try things like:
> >
> > .xforms-readonly input { ... }
> >
> > instead.
> >
> > -Erik
> >
> > Nelson Tsang wrote:
> > > Hello all,
> > >
> > > How can I change the Style / Font Color of the readonly fields (
e.g.
> > > those input fields with a bind calculations).
> > > I found that all the readonly fields was set to grey color by default, I
> > > have tried to add a class in my xform CSS
> > > call:
--
Orbeon Forms - Web Forms for the Enterprise, Done the Right Way
http://www.orbeon.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
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws
--
--
Nelson.
[hidden email]
--
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
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws