angular-ui-form-validation icon indicating copy to clipboard operation
angular-ui-form-validation copied to clipboard

Running custom validation 'runCustomValidation' for specific form

Open surendrakashyap opened this issue 10 years ago • 4 comments

I would like to clarify my question or rather ask. Currently, we have ability to run 'runCustomValidation'. However, we don't specify the form name..this triggers custom validation on all forms. Is there anyway to limit the validation to a specific form. In my situation, I have more than one form in HTML an once controller. I am trying to do SPA. Angular form validation, does distinguish this.

Thank you in advance

surendrakashyap avatar Nov 18 '14 00:11 surendrakashyap

Yes I will immediately work on this, thanks for raising the issue @surendrakashyap

nelsonomuto avatar Nov 18 '14 17:11 nelsonomuto

I will add a parameter to the runCustomValidation event that expects the form name or id you wish the validation to be executed upon.

nelsonomuto avatar Nov 18 '14 17:11 nelsonomuto

Thank a lot. Once fix is added, please recommend a stable release. specifically I can wait to make sure there is not any template related issues.

surendrakashyap avatar Nov 18 '14 19:11 surendrakashyap

Hi there. Any update to that? Very important feature.

hklitzke avatar Aug 25 '15 14:08 hklitzke