W3C home > Mailing lists > Public > www-forms@w3.org > February 2009

Re: warning if a required field is left empty

From: Charles F Wiecha <wiecha@us.ibm.com>
Date: Wed, 4 Feb 2009 17:01:21 -0500
To: Jabba Laci <jabba.laci@gmail.com>
Cc: xforms <www-forms@w3.org>, www-forms-request@w3.org
Message-ID: <OF15F5D186.16DC7407-ON85257553.0078B74F-85257553.0078E98F@us.ibm.com>

Hi -- In XForms 1.0 you can listen for the xforms-submit-error event,
dispatched on the relevant <submission> element.  This event is used to
signal, among other things, required but missing data.  See section 11.1 of
the spec (http://www.w3.org/TR/xforms/#submit).

In XForms 1.1 the xforms-submit-error is augmented with context information
that allows you to test specifically for this condition vs. other possible
causes of a failed submission.

Charlie Wiecha

  From:       Jabba Laci <jabba.laci@gmail.com>                                                                              
  To:         xforms <www-forms@w3.org>                                                                                      
  Date:       02/04/2009 04:43 PM                                                                                            
  Subject:    warning if a required field is left empty                                                                      
  Sent by:    www-forms-request@w3.org                                                                                       


I have an xform with several required fields. If the user leaves one
of them blank and presses the submit button, nothing happens. How
could I add a warning message saying "You didn't fill all the required
fields." ? I don't want to detail which fields are missing, I just
want a general warning.



(image/gif attachment: graycol.gif)

(image/gif attachment: ecblank.gif)

Received on Wednesday, 4 February 2009 22:02:04 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:22 UTC