How to generate unique id for a widget?

Good afternoon. I have a form that is used on the page several times. In this form, for field use MaskedInput widget. The problem is that the widget prescribes more of the same id for the field. How to make a widget generatorul id or how to use a widget by id and field name. Thank you!
Here is the code:

<?= $form--->field($model, 'phone')->widget(MaskedInput::className(), [
 'mask' => '+9 (999) 999 99 99', 

<input type="text" id="form-phone" class="form-control" name="Form[phone]">
July 8th 19 at 12:06
1 answer
July 8th 19 at 12:08
Judging by the source, you can try to set the ID in the options:

Find more questions by tags PHPYii