Re: QuickForm setDefaults problem ?

From: Date: Sun, 01 Feb 2004 22:17:35 +0000
Subject: Re: QuickForm setDefaults problem ?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-10478@lists.php.net to get a copy of this message
<levy@vogn.is> wrote : > Hi, thanks for the reply. > > It was not HTML_Common, it's up to date. The 'select' box is loading the > array I give it and no problems there but I can't select a specific > value in the 'select' box. 'setDefaults();' and 'setSelected();' > do not > work but they work in all other elements e.g. 'text' and 'textarea'. I > can't imagine what causes this. Maybe I'm not loading the array properly > as an '$option' in the 'addElement();' method ?? I don't know. Please > help, it's been days now :/ Hi, The code you posted works fine for me. The problem is not in QuickForm. No need to use setSelected() for your tests, it should work with setDefaults(). Maybe refresh your browser's cache... Bertrand Mansion Mamasam

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