This message has been posted in the MVC forum, since nobody reply it, so I
have to post it in the general forum.


When I use Zend_View_Helper_FormSelect to generate "select" list of options,
I got two option items have been pre-selected, actually there should only
one option with value of ".P"  been selected. I posted all the detail of
Options Array contents and the generated html select results, so someone may
see it and fix the bug in the FormSelect class. In our project, we need to
generate lots of select options list, so if this bug can be fixed in the
near future, that will help users to use Zend Framework in the real world.

Options Array as shown below:
Options[Empty] := Select from option list...
Options[.A] := Not Applicable to this Case or Patient
Options[.F] := Not Found in Chart/No Response to Follow-up
Options[.L] := Lost Chart/Lost to Follow-up
Options[.P] := Pending Data
Options[.R] := Not Recorded in Chart or Follow-up Response
Options[0] := No
Options[1] := Yes


<?= $this->formSelect("hx_dmti_s",'.P',null,$this->Options) ?> will render
following html select element:
<select id="hx_dmti_s" name="hx_dmti_s">
        <option label="Select from option list... " value="Empty">Select
from option list... </option>
        <option label="Not Applicable to this Case or Patient"
value=".A">Not Applicable to this Case or Patient</option>
        <option label="Not Found in Chart/No Response to Follow-up"
value=".F">Not Found in Chart/No Response to Follow-up</option>
        <option label="Lost Chart/Lost to Follow-up" value=".L">Lost
Chart/Lost to Follow-up</option>
        <option selected="selected" label="Pending Data" value=".P">Pending
Data</option>
        <option label="Not Recorded in Chart or Follow-up Response"
value=".R">Not Recorded in Chart or Follow-up Response</option>
        <option selected="selected" label="No" value="0">No</option>
        <option label="Yes" value="1">Yes</option>
</select>
-- 
View this message in context: 
http://www.nabble.com/Using-Zend_View_Helper_FormSelect-Class-tf4417259s16154.html#a12599339
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to