Hi Everyone,
In a parent form, i have a field and a button. this button show the modal dialogue contains gridview. After i click the value or row i want, i want to pass to the parent form (in a field).
how to perform like this.
here the illustration
parent form
modal form
I cannot perform search in modal-form, why?
this is my parent form script to show the modal
<div class="col-xs-8">
<div class="form-group field-poagen-price">
<br>
<?= Html::button('Price List', ['value' => Url::to('../pricelist/list'), 'class' => 'btn btn-primary', 'id' => 'BtnModalPriceList']) ?>
<?php
Modal::begin([
'header' => 'List Harga',
'id' => 'modal',
'size' => 'modal-md'
]);
echo "<div id='modalContent'></div>";
Modal::end();
?>
</div>
</div>
Please advice from the Yii2 Masters. Thanks before.