Re: Formbuilder fieldLabel postfix/prefix [feature request?]

From: Date: Thu, 21 Apr 2005 03:43:52 +0000
Subject: Re: Formbuilder fieldLabel postfix/prefix [feature request?]
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-18854@lists.php.net to get a copy of this message
On 4/20/05, Rodrigo Alvarez <papipo@gmail.com> wrote: > Hi PEARs, > > I'm using this inside a DO: > > var $fb_linkDisplayFields = array('name', 'price', > 'costcategory_id'); > var $fb_linkDisplayLevel = 2; > > I want to append an Euro symbol to the 'price', so It can be easy > identified in the select field being generated. Is this possible? > > I'm trying to do it by using this: > > function postGenerateForm(&$form, &$fb) > { > $costvariable_id = &$form->getElement('costvariable_id'); > foreach ($costvariable_id->_options as $opt) { > // Do some kind of replacement here > } > } > > Any ideas? > Perhaps a formatting callback? For the full DO string (as returned by DB_DataObject_FormBuilder::getDataObjectString($do)): dataObjectFormatter($doString, &$do) For a DO field: dataObjectFieldFormatter($fieldString, $field, &$do) -- Justin Patrin

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