Answer the question
In order to leave comments, you need to log in
Why is onChange not being processed on the ActiveForm text field?
Simple input fields do not respond to changes, why?
The rest on the onChange event work well - they reload the data.
<?
$form = ActiveForm::begin([
'id' => 'quick-filter-document-form',
'options' => [
'data-pjax' => '1'
],
'action' => Url:: to([/]),
'method' => 'post',
'enableClientScript' => false
]);
?>
<?=Yii::t('common', 'Document ID')?>
<?= $form->field($searchModel, 'id')->textInput()->label(false)?>
<?= Html::activeLabel($searchModel, 'created_at', [
'class' => '
<?= Html::activeLabel($searchModel, 'status', [
'class' => 'control-label'
]) ?>
<?= $form->field($searchModel, 'status')
->dropDownList( DocumentSearch::getAvailableStatuses(), ['prompt' => Yii::t('common', 'All')])
->label(false) ?>
<? $form->end()?>
Answer the question
In order to leave comments, you need to log in
Little data, show how pjax Initiate. Look in the panel if the ajax request itself is coming?
The construction you have given does not give food for thought:
But such a call generates ONE field. And does not create a widget to process ALL fields (as a rule).
You must make a similar call for each field that does not respond, so that the widget would attach to each field.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question