This is a migrated thread and some comments may be shown as answers.

Form validation requirements

1 Answer 258 Views
Form
This is a migrated thread and some comments may be shown as answers.
daniel
Top achievements
Rank 1
daniel asked on 14 Oct 2020, 01:27 PM

Hi,

Could you confirm the necessary requirements to get the Form validation working please?

We create a new project using the Telerik asp.net core 3.1 web MVC project, standard layout choices.

Create a model class with [Required] annotated fields.

Create a new "Create" view with the Form for the model, copying code from the Form examples and from the documentation but the onblur validation never fires?

Do we need jquery-validate files?

What are we missing that triggers the validation?

Thanks,

Daniel.

1 Answer, 1 is accepted

Sort by
0
Accepted
Neli
Telerik team
answered on 19 Oct 2020, 09:38 AM

Hello Daniel,

Could you please share some more information about the model and the Form configuration at your end?

I have tested the Form behavior by creating a sample project that you will find attached. The project is created by using the Telerik Create Project Wizard. Next, I copied the controller and the view from the Form validation demo. In the Models folder, you will find also the 'UserViewModel'.The validation on blur works without any issues on my end. 

May I ask you to modify the attached sample in order to replicate the behavior the way it is at your end and send it back? Thus, we could have a closer look and advise you further.

Here you will find a link regarding Form validation that could also be helpful.

Looking forward to your reply.

Regards,
Neli
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Form
Asked by
daniel
Top achievements
Rank 1
Answers by
Neli
Telerik team
Share this question
or