You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the PhoneInput widget with the "saperateDialCode" option set to true,
and I check the validation at submit, so when I submit it adds the dial code automatically to the input value and gives me a validation error "The format of Phone Number is invalid."
but when I remove the "separateDialCode" option and enter the same number it would accept it normally
this is my input code: <?= $form->field($model, 'phone_number')->widget(PhoneInput::className(), [ 'jsOptions' => [ 'onlyCountries' => array_values($countries['iso']), 'separateDialCode' => true, 'allowDropdown' => false, ], ] ])
I'm using the PhoneInput widget with the "saperateDialCode" option set to true,
and I check the validation at submit, so when I submit it adds the dial code automatically to the input value and gives me a validation error "The format of Phone Number is invalid."
but when I remove the "separateDialCode" option and enter the same number it would accept it normally
this is my input code:
<?= $form->field($model, 'phone_number')->widget(PhoneInput::className(), [ 'jsOptions' => [ 'onlyCountries' => array_values($countries['iso']), 'separateDialCode' => true, 'allowDropdown' => false, ], ] ])
and this is my validation code in the model
[['phone_number'], PhoneInputValidator::className()]
and I'm using the version '0.1.2'
The text was updated successfully, but these errors were encountered: