Hi,
I need help on how to get selected value of disabled drop down on controller after submit the form. Sample code below with HTML:
<form id=“ProspectiveActivities_form” method=“POST” action="<?php echo Yii::app()->baseUrl . ‘/reports/prospectiveactivities’;?>">
<input type="hidden" name="section" value="standard" />
<?php
echo CHtml::dropDownList(‘ProspectiveActivities[period]’, implode(’:’,array_values($this->getCurrentQuarter(FALSE))), $options, array(‘disabled’=>‘disabled’), array( ‘options’ => array( $default_value_monthly => array(‘selected’ => ‘selected’,)), ‘class’ => ‘periods-select’ )); ?>
<td class=“report-runlink” style=“border-right:none;”><?php echo CHtml::link("<img src = ‘". $run_image ."’>", “#”, array( ‘class’ => ‘run-link’, ‘id’ => ‘ProspectiveActivities_run’ )); ?></td>
</form>
Now I will get an array like Array ( [ProspectiveActivities] => Array ( [period] => 01 Jul 2013:30 Sep 2013 ) [action] => run ) when I will submit this form without disabled property of drop down.
If I use disabled property of drop down then It will not get anything.
Here I need the disabled drop down and get the same array. Can you please help me?