sdlins / yii2-at-least-validator

Makes one or more attributes mandatory inside a set of attributes.
Apache License 2.0
28 stars 19 forks source link

Client validation #9

Open vityapro opened 7 years ago

vityapro commented 7 years ago

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

sdlins commented 7 years ago

@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.

vityapro commented 7 years ago

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.

sdlins commented 7 years ago

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

vityapro commented 7 years ago

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

sdlins commented 7 years ago

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

vityapro commented 7 years ago

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

sdlins commented 7 years ago

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