yii2 select2 by kartik-v set default value
<p>I've a question about yii2 kartik-v widget select 2.</p>

<p>the widget is attached to a field in my view </p>

<pre><code>&lt;?=
$form-&gt;field($model, 'address')-&gt;widget(Select2::className(), [
    'options' =&gt; ['placeholder' =&gt; 'Inserta an address '],
    'pluginOptions' =&gt; [
        'allowClear' =&gt; true,
        'minimumInputLength' =&gt; 3,
        'ajax' =&gt; [
            'url' =&gt; Url::to(['register/addresses']),
            'dataType' =&gt; 'json',
            'data' =&gt; new JsExpression('function(params) { return {q:params.term}; }')
        ],
        'escapeMarkup' =&gt; new JsExpression('function (markup) { return markup; }'),
        'templateResult' =&gt; new JsExpression('function(address) { return address.name; }'),
        'templateSelection' =&gt; new JsExpression('function (address) { return address.name; }'),
    ],
    'pluginEvents' =&gt; [
        "select2:select" =&gt; "function(e) {
                      // some function

                }",
    ],
]);
?&gt;
</code></pre>

<p>if in my controller i want to set to this field a value</p>

<p>like: <code>$model-&gt;address = "Some Value";</code> on the view the field remain blank</p>

<p>what can i do?</p>

<p><strong>UPDATE!</strong></p>

<p>As the documentation say i can use the option: 'initValueText' if i use the ajax version of this plugin. So i've tried to set <code>'initValueText' =&gt; $model-&gt;address,</code> but the result is the same</p>