[QF & FB] Hierselect & linksNewValue
| From: | registros) | Date: | Sun, 06 Nov 2005 18:15:13 +0000 |
| Subject: | [QF & FB] Hierselect & linksNewValue | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-21817@lists.php.net to get a copy of this message | ||
(sorry I posted this before, but as a reply to other message)
Hi list!
I tried hierselect code found in http://opensource.21st.de/25.html#A11. It's working ok but omites var $linksNewValue.
<code>
var $fb_linkNewValue=true;
var $fb_linkNewValueText = '--Add one--';
var $fb_linkElementTypes = array('id_countryid_city'=>'select') --> I tried id_countryid_city[0] and 'hierselect' instead 'select' but didn't work
[.....]
function preGenerateForm(&$fb){
$hierselect =& HTML_QuickForm::createElement('hierselect', $fb->getFieldName($virtualfield), $desc,null,'<br/>');
[......]
$this->fb_preDefElements[$virtualfield] = $hierselect; [....]} </code> Does anybody know how to get it working? thanks in advance