Re: HTML_QuickForm and DB_DataObject_FormBuilder date question...

From: Date: Tue, 04 Apr 2006 21:07:56 +0000
Subject: Re: HTML_QuickForm and DB_DataObject_FormBuilder date question...
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-23538@lists.php.net to get a copy of this message
On 4/4/06, Wright Zane A A1C 30 IS/DOMM <Zane.Wright@langley.af.mil> wrote: > Hello all, > > > > I have searched high and low and couldn't find anything on how to > correctly display the defaulted 'date' element as a text field? > elementTypeMap *should* work, but could be having problems due to some assumptions that FB is making. > > > I am actually trying to get the information into an ajax function but I > can't seem to pull everything needed... if anything I can only pull the > first day field for some reason. So instead I'm trying to just convert > it over to a plaintext field they can type in. > Well, the normal date "element" is actually many elements. You would need to get all of the pieces and reassemble them. > > Has anybody had any luck in either of these situations? I have tried > using getElementById and getElementsByName to try and get the fields but > no luck. I have also tried just setting the elementTypeMap(?) option to > change it to text but I get an htmlspecialchars error and it gives me > blank fields. Any help? Thanks a lot, > You can also try using preDefElements (in preGenerateForm). -- Justin Patrin

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