Re: Required date field isnt being checked in the JS for FormBuilder

From: Date: Fri, 20 May 2005 00:11:18 +0000
Subject: Re: Required date field isnt being checked in the JS for FormBuilder
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-19287@lists.php.net to get a copy of this message
On 5/18/05, Dan Rossi <pear@electroteque.org> wrote: > > On 19/05/2005, at 2:15 PM, Justin Patrin wrote: > > > On 5/18/05, Dan Rossi <pear@electroteque.org> wrote: > >> Hi there I have tweaked FormBuilder to add fields required for null > >> fields. Its displaying the javascript fine however i set the default > >> to > >> an empty option and its not displaying as a field required in the > >> alert > >> box. Any ideas what the issue may be ? > >> > > > > I'm not sure what you're saying here.... FormBuilder already sets NOT > > NULL fields as required. > > > > -- > > Justin Patrin > > > > > > Sorry must but in caps date fields are NULL , but i patched it so i can > add NULL fields as required ;) The javascript is coming up however is > not triggering that it is not selected. I have set the defaults to an > empty value but is obviouslly not recognising the value as empty. > So you've altered formbuilder to make *everything* required? Either fields are allowed to be NULL or they're NOT NULL. FormBuilder already sets any field that DB_DataObject lists as NOT NULL (DB_DATAOBJECT_NOTNULL) as required. Altering FormBuilder to make NULLable fields required would make all fields required. You're not making much sense, please slow down and explain. How are you setting the "default" as "empty"? Are you using selectAddEmpty? -- Justin Patrin

« previous php.pear.general (#19287) next »