Hi all,
I hope find solution for get data response json in other textfield. So this data could be condition for readonly or not in otherfield.
I have textfield like this :
<?php echo $form->textFieldControlGroup($model,'ACC_CODE',array('span'=>10,'maxlength'=>20,'autocomplete'=>'off','help'=>'Batas Kode 20 karakter',
'ajax' => array(
'type'=>'POST',
'url'=>CController::createUrl('OpenReadOnlySatu'),
'data'=>array('code_acc'=>'js:this.value'),
'dataType'=>'json',
'success'=>'js:function(data) {
$("#Accoumdb_ACC_UMUM").val(data.umumu);
$("#Accoumdb_ACC_LEVL").val(data.levelu);
$("#Accoumdb_ACC_NAME").val(data.nameu);
}',
)
));
?>
I want to do other textfield, can be readonly or not based data from id = #Accoumdb_ACC_LEVL.