Thanks a lot Naveen.. This is what i was looking after..

On Saturday, June 21, 2014 12:10:40 AM UTC+10, Naveen Kohli wrote:
>
> Here is example along the lines of what you are looking for. This should 
> provide you some stating point.
>
> http://www.byteblocks.com/Post/Custom-validator-for-AngularJS-applications
>
>
> On Friday, June 20, 2014 5:56:48 AM UTC-4, balamurugan r wrote:
>>
>> thanks Diego.. I'm not sure about custom validation directive. anyway i 
>> will try to learn... thanks a  lot
>>
>> On Friday, June 20, 2014 7:46:01 PM UTC+10, Diego Fernandez wrote:
>>>
>>> Hi Balamurugan,
>>> try to see if this helps: 
>>> http://stackoverflow.com/questions/19521177/angularjs-custom-form-validation-error-message
>>>
>>> Cheers
>>>
>>>
>>>
>>> On 20 June 2014 10:08, balamurugan r <[email protected]> wrote:
>>>
>>>> HI guys,
>>>>
>>>> Can someone help me on this ?
>>>>
>>>>
>>>> On Thursday, June 19, 2014 9:18:22 PM UTC+10, balamurugan r wrote:
>>>>>
>>>>> Hi guys,
>>>>>
>>>>> In my requirement, i need to validate the text entered by the user in 
>>>>> the input element for below scenarios.
>>>>>
>>>>> Input Type should be Text , and validation should be performed for 
>>>>> number. We dont want that to be number type because it renders in 
>>>>> different 
>>>>> style in different browsers. And we want too support IE8 & IE7 as well..
>>>>>
>>>>> value                                     error message       
>>>>> implementation                                                            
>>>>>  
>>>>>                  
>>>>> ""                                         This is required       
>>>>> required attribute 
>>>>> NonAlphanumeric                  Invalid                    ng-pattern 
>>>>> (Regex Pattern for numbers)
>>>>> 0                                          Should not be 0      ?????? 
>>>>>
>>>>> is it possible to specify more patterns for single input ??
>>>>> Actually i need two different error message for same input ??
>>>>>
>>>>> How this can be achieved with multiple patterns ??
>>>>>
>>>>> Thanks in advance
>>>>>
>>>>>  -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "AngularJS" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to [email protected].
>>>> To post to this group, send email to [email protected].
>>>> Visit this group at http://groups.google.com/group/angular.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to