I'm new to Umbraco CMS. I have been trying my best to implement client side validation with Custom Attributes + Remote Validation, but unable to achieve it.
Custom Attribute is giving me validation message after post-back. It would be really great if someone can help me to solve it.
For Remote validation, I'm getting an error "no url found in route table"... something like this.
The solution uses Surface Controller for navigation and version 8.11.1.
Let me know what additional details are required from my end.
Thanks in advance.
showing how to create a form that posts back to a surface controller, and use data annotations for validation, and use the jquery unobtrusive validation library for clientside validation.
This might give you some inspiration for what you need to do in your scenario, or if you can post some code, can possibly advise what might be missing.
Client Side Validation not working
Hi,
I'm new to Umbraco CMS. I have been trying my best to implement client side validation with Custom Attributes + Remote Validation, but unable to achieve it.
Custom Attribute is giving me validation message after post-back. It would be really great if someone can help me to solve it.
For Remote validation, I'm getting an error "no url found in route table"... something like this.
The solution uses Surface Controller for navigation and version 8.11.1. Let me know what additional details are required from my end. Thanks in advance.
Kind Regards, Aniket Kori.
HI Aniket
There is a good article here, although a little old:
https://24days.in/umbraco-cms/2012/creating-a-login-form-with-umbraco-mvc-surfacecontroller/
showing how to create a form that posts back to a surface controller, and use data annotations for validation, and use the jquery unobtrusive validation library for clientside validation.
This might give you some inspiration for what you need to do in your scenario, or if you can post some code, can possibly advise what might be missing.
regards
Marc
is working on a reply...