Send Parameter With _Form


how to send one parameter from _form to for example ( actionUpdate ) without set display:none for filde or use AjaxSubmitButtom or set parameters in action property in form

i need one solution for send parameter from _form without show any filde in _form

Hello Amir Sabet,

If I understood you correctly you should return required values to ajax submit button success: function(){}

e.g. <?php echo CHtml::ajaxsubmitButton("label", "url", array(

‘success’=>'js: function(response){

/* your code here*/



/* in your controller*/

public function "actionYourMethodName"(){

/* your code


echo CJSON::encode($response); /* this can be retrieved in ajax success in the form */