- From: Nick Van den Bleeken <nick.vandenbleeken@unifiedpost.com>
- Date: Tue, 15 Sep 2020 14:08:56 +0200
- To: Steven Pemberton <steven.pemberton@cwi.nl>
- Cc: public-xformsusers@w3.org
Hi Steven, You probably know this, but we have a 'validate' attribute on the submission element[1] which allows you to submit invalid data (when doing for example an auto-save of the data). And because empty required elements are considered invalid you can submit empty values. 1: https://www.w3.org/MarkUp/Forms/wiki/XForms_2.0#The_XForms_Submission_Module regards, Nick Van den Bleeken www.unifiedpostgroup.com Nick Van den Bleeken Researcher +32 499 51 85 02 www.unifiedpostgroup.com Avenue Reine Astrid 92A 1310 La Hulpe, BE On Tue, Sep 15, 2020 at 1:47 PM Steven Pemberton <steven.pemberton@cwi.nl> wrote: > > Ok, so it's a validity property; I had forgotten that: > > https://www.w3.org/community/xformsusers/wiki/XForms_2.0#Revalidate > > An instance node is valid if > > the value is empty and not required, > or > > > Still, I think we ought to be more explicit about that. > > Steven > > > On Tue, 15 Sep 2020 12:37:51 +0200, Steven Pemberton > <steven.pemberton@cwi.nl> wrote: > > > https://www.w3.org/community/xformsusers/wiki/XForms_2.0#The_required_Property > > > > 5.3.4 The required Property > > This property describes whether a value is required before the instance > > data can be submitted. > > > > This property indicates whether the instance data node must be non-empty > > before a submission of the instance data can occur. A value is non-empty > > if it would have a length greater than zero if converted to string. > > > > (Also in XForms 1.1) > > > > And yet, I find nothing in submission processing that enforces this! > > > > And furthermore, I would expect we should have a submission attribute > > required="false" that allows you to submit regardless of 'required' > > processing. > > > > Steven >
Received on Tuesday, 15 September 2020 15:00:09 UTC