> Using FF 3.5.3 and Orbeon 18.104.22.168, I'm getting unexpected results with:
> <xforms:bind nodeset="book">
> <xforms:bind nodeset="title" required="true()"/>
> <xforms:bind nodeset="author" required="true()"/>
> I am able to Save a book record with empty title and/or author fields.
> I'm following the tutorial carefully but I note that the example source uses
> the XPath "instance('books-instance')/book"). This also fails in my form. My
> instance seems correct. Any ideas?
On Wed, Oct 7, 2009 at 1:28 PM, John Turnbull
<[hidden email]> wrote:
> Figured it out ... in fact I am not able to save an empty field when
> required is true.
Correct. You should not be able to submit an instance if it contains
empty nodes marked as required.
> But, I'm not getting an alert message from
> <xforms:input ref="title">
> <xforms:alert>The title is required</xforms:alert>
> Should I be? Or is there another missing piece I should be aware of?
You should be getting an alert in that case. I just test this in an
example, and it is working fine for me. If you still have this
problem, could you submit a simple example that shows this and runs in
the XForms sandbox?