Knockout-Validation icon indicating copy to clipboard operation
Knockout-Validation copied to clipboard

how to show err msg in a popup as Email field dose?

Open spj opened this issue 12 years ago • 4 comments

I have a few input fields including an Email field. in submission, only Email field shows its error in a popup like img attached. I want to implement the same to other fields too, How?

Thanks, capture

spj avatar Jun 26 '14 01:06 spj

Pop ups are not an out of the box feature of knockout validation so you must be using something else to get that message to appear. Have you tried applying the same to the other fields?

If so, post a bit more information and we might be able to help On 26 Jun 2014 02:26, "spj" [email protected] wrote:

I have a few input fields including an Email field. in submission, only Email field shows its error in a popup like img attached. I want to implement the same to other fields too, How?

Thanks, [image: capture] https://cloud.githubusercontent.com/assets/828421/3393874/d4e8ff80-fcd0-11e3-8dcc-6e2d4d75216a.PNG

— Reply to this email directly or view it on GitHub https://github.com/Knockout-Contrib/Knockout-Validation/issues/435.

stevegreatrex avatar Jun 26 '14 05:06 stevegreatrex

I did nothing special to the Email field, how come it throws a popup? this.email = ko.observable().extend({ email: true });

spj avatar Jun 26 '14 14:06 spj

Have you set the input type to email? It could be a browser thing On 26 Jun 2014 15:39, "spj" [email protected] wrote:

I didn't nothing special to the Email field, how come it throws a popup?

this.email = ko.observable().extend({ email: true });

— Reply to this email directly or view it on GitHub https://github.com/Knockout-Contrib/Knockout-Validation/issues/435#issuecomment-47233836 .

stevegreatrex avatar Jun 26 '14 17:06 stevegreatrex

I did. Thanks,

spj avatar Jun 27 '14 17:06 spj