yii2-at-least-validator icon indicating copy to clipboard operation
yii2-at-least-validator copied to clipboard

Client validation

Open vityapro opened this issue 9 years ago • 7 comments

If user use custom id for fild your client validation vil work inkorrect, can you fix it ?

vityapro avatar Nov 07 '16 14:11 vityapro

@vityapro I have been very busy nowadays, unfortunately. Could you show a real example? Or still better: could you make a PR? It would be very appreciated.

sdlins avatar Nov 29 '16 04:11 sdlins

Here a small examle: Developer use active form fild, and for sum rison hi set for this fild custom id

= $form->field($user, 'address')->textInput(['id' => 'custom_id'])?>

And in this case your function clientValidateAttribute() file: AtLeastValidator.php strin: 116 (client side validation) will work wron.

vityapro avatar Nov 29 '16 06:11 vityapro

@code-on-yii/core any help here (when you have some time) would be really great!

sdlins avatar Dec 02 '16 04:12 sdlins

Ok, but I want to warn that the free time I have not much.

vityapro avatar Dec 03 '16 07:12 vityapro

No problem @vityapro. Just let me know if you start to code here to avoid duplicated efforts. Thanx.

sdlins avatar Dec 03 '16 14:12 sdlins

Ok, but the repo @code-on-yii/core is private, or you meant repo : @code-on-yii/yii2-at-least-validator ?

vityapro avatar Dec 03 '16 16:12 vityapro

@vityapro core is not a repo, is the way used to mention all core code-on-yii members easily. :+1:

sdlins avatar Dec 03 '16 17:12 sdlins