Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.2

Request #4187 fieldLabels postfix/prefix
Submitted: 2005-04-20 14:40 UTC
From: papipo at gmail dot com Assigned:
Status: Open Package: DB_DataObject_FormBuilder
PHP Version: 4.3.11 OS: np
Roadmaps: (Not assigned)    
Subscription  
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes. If this is not your bug, you can add a comment by following this link. If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
2005-04-21 04:36 UTC
Package:
Bug Type:
Summary:
From: papipo at gmail dot com
New email:
PHP Version: Package Version: OS:

 

 [2005-04-20 14:40 UTC] papipo at gmail dot com
Description: ------------ It could be interesting to use prefixes or postfixes for fieldLabels. For example, take a look at the code below. Reproduce code: --------------- var $fb_fieldLabels = array('name', 'price'); Expected result: ---------------- Instead of: <option>Ford mustang, 14508.45</option> we should be able to get: <option>Ford mustang, 14508.45 €</option>

Comments

 [2005-04-21 04:36 UTC] justinpatrin
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)