Required Field Background Highlighting Issue

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

Required Field Background Highlighting Issue

Keegan
Hi,

I am using the 3.7 Orbeon Forms engine and found that the required fields in the BookCast tutorial are not having their background set to red when empty.  I have tried this in Safari 3.1.2, Firefox 3.0 and IE7 without success.  

Here is the binding
<xforms:bind nodeset="title" required="true()"/>

Thanks,
Keegan
Reply | Threaded
Open this post in threaded view
|

Re: Re quired Field Background Highlighting Issue

Alessandro Vernet
Administrator
Keegan,

On Feb 18, 2009, at 5:22 AM, Keegan wrote:

> I am using the 3.7 Orbeon Forms engine and found that the required  
> fields in
> the BookCast tutorial are not having their background set to red  
> when empty.
> I have tried this in Safari 3.1.2, Firefox 3.0 and IE7 without  
> success.
>
> Here is the binding
> <xforms:bind nodeset="title" required="true()"/>

First, the binding would need to be:

<xforms:bind nodeset="book/title" required="true()"/>

Then, the class xforms-required-empty is set on the input, but we  
don't do anything with it by default in the standard XForms CSS. There  
is CSS that adds a border to the field:

.xforms-invalid-visited .xforms-input-input, textarea.xforms-invalid-
visited,
.xforms-required-empty .xforms-input-input, textarea.xforms-required-
empty
         { border-color: orange }

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