Re: FormBuilder
| From: | Justin Patrin | Date: | Sat, 17 Feb 2007 02:15:20 +0000 |
| Subject: | Re: FormBuilder | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26605@lists.php.net to get a copy of this message | ||
On 2/16/07, Ian Warner <iwarner@triangle-solutions.com> wrote:
Hi Seems the formbuilder docs site is down at the moment.Spiders have been taking over all of my apache processes. If anyone has any suggestions I'd appreciate them.
So Is it possible to do something like the below -As bertrand said, you're calling createElement wrong. Make 2 different elements. You're going to additionally get an error about the values as FB automatically converts fate values to arrays as this is what the date element expects. You need to set the dataFromDatabaseCallback and dateToDatabaseCallback to null to turn them off.function preGenerateForm(&$fb) { $el = HTML_QuickForm::createElement('hidden', array('creation_date','revision_date'));$this->fb_preDefElements['creation_date'] = $el; $this->fb_preDefElements['revision_date'] = $el; }causes - Warning: Illegal offset type in isset or empty in D:\AWebEnvironment\PHP5.2.0\PEAR\HTML\QuickForm.php on line 610
Also I noticed that there was an inbuilt HTML area with formbuilder how do I activate this and also find info on the other elements extensions available - I suppose they are in the docs but dont know when that will be back.Where did you notice this? FormBuilder itself has no support for this built in. You can add support pretty easily with most JS RT editors as they have methods to replace a textarea with their own RTE. I suggest looking into tinymce. -- Justin Patrin