tooba
(Toobaahmad12)
1
Hello everyone.plz help me I have one dropdownlist in my view.And I have one button.When user clicks on button a new form is open.
I want that when user select any value from dropdownlist then after click on button that value would display on other form…plz help me.
shgninc
(Shgninc)
2
What is your view code? How did you implement it?
shgninc
(Shgninc)
4
Maybe you should to use some Cform or CAvtiveForm for it:
<?php $form=$this->beginWidget('CActiveForm', array(
'id'=>'form-field-form',
'enableAjaxValidation'=>false,
)); ?>
<?php echo $form->dropDownList($model,'visible',FormField::model()->findAll('select'=>'value, title'); ?>
<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>