xforms-invalid fields

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

xforms-invalid fields

ilango_g
I need to indicate to the user any entered fields that don't validate against the schema. I have attempted to do this with the schema defines date fields, string fields, etc.

I would like to show "red" displayed for a field that has invalid entry, with an xforms-valid message.

How can I successfully use a schema defined type like xs:string and xs:date with xforms-invalid?

How can I get the background to show red for xforms-invalid against bound types?

What is the appropriate CSS that I can put in for a field that when I enter an invalid value, the background should display pink or red or whatever.

thanks
ilango
Reply | Threaded
Open this post in threaded view
|

Re: xforms-invalid fields

Alessandro Vernet
Administrator
On Mar 26, 2008, at 6:12 AM, someperson wrote:

> I would like to show "red" displayed for a field that has invalid  
> entry,
> with an xforms-valid message.
>
> How can I successfully use a schema defined type like xs:string and  
> xs:date
> with xforms-invalid?
>
> How can I get the background to show red for xforms-invalid against  
> bound
> types?

An invalid control will have an xforms-invalid class on it. So you  
should be able to use that class to style it with a red border, if  
this what you want to do. Using Firefox and the Firebug extension  
greatly help when doing this type of work, as you will be able to  
easily see where the classes are defined, and what the result of your  
CSS is.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.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