unobtrusive-validation Questions
3
Solved
I have a form, and when it does the unobtrusive validtaion I want it to show:
This message: "Please enter a value."
Instead of this message: "This Field is required."
I tried adding this at the ...
Tutankhamen asked 14/10, 2013 at 16:29
8
I'm having problems trying to get the unobtrusive jquery validation to work with a partial view that is loaded dynamically through an AJAX call.
I've been spending days trying to get this code to ...
Steepen asked 15/2, 2013 at 20:11
7
I'm hijaxing an existing form and POSTing to the server. jQuery validate does most of the validation but if validation fails on the server we return the errors to the client as JSON.
Below is the ...
Boatswain asked 6/7, 2012 at 10:59
4
Solved
I'd like to be able to only allow a form to submit if the value in a certain field is greater than 0. I thought maybe the Mvc Range attribute would allow me to enter only 1 value to signify only a ...
Brookbrooke asked 14/9, 2011 at 15:47
2
Solved
I want to use ComponentModel DataAnnotations validate that at least one of two properties has a value. My model looks like this:
public class FooModel {
public string Bar1 { get; set; }
public i...
Esmeralda asked 5/3, 2012 at 0:25
4
Solved
I am generating a list of elements on a page, and they all have validators attached to them. When I look in the HTML source, I see something like:
<input type="text" id="email" name="email" dat...
Release asked 29/8, 2012 at 10:46
5
@Scripts
<script src="@Url.Content("~/Scripts/jquery-1.7.1.min.js")"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.js")"></script>
<script src="@Url....
Matronly asked 4/7, 2014 at 10:56
3
Solved
When I use the Kendo UI ComboBox and DropDownList controls in my MVC Razor views, the client-side validation does not fire. Here is an example:
@using Kendo.Mvc.UI
@model KendoDropDownTest.Models....
Criticaster asked 6/9, 2012 at 19:5
5
Solved
In an MVC3 app, using jquery unobtrusive validation, and a view/model with a [Remote] validator: I am trying to disable the submit button and display a wait icon during remote validation, and when ...
Rego asked 20/10, 2011 at 18:44
5
Solved
I'm currently using Twitter Bootstrap modal component and i have an issue where I use jquery validation plugin on input fields in the content I load remotely using the data-remote attribute.
Becau...
Devote asked 23/9, 2013 at 12:29
14
Solved
Assume this model:
Public Class Detail
...
<DisplayName("Custom DisplayName")>
<Required(ErrorMessage:="Custom ErrorMessage")>
Public Property PercentChange As Integer
...
end cl...
Latoyialatreece asked 28/1, 2011 at 12:38
5
Solved
I'm doing something similar to the remote validation, except that I already make my calls manually via jquery and setup whatever I had to setup.
Now my problem is, if I want to tell the validator ...
Cusped asked 11/9, 2011 at 18:13
1
Solved
I was not able to get my client side validation method to fire after setting up the validation according to various sources. After lots of struggle I found that changing the order of when the scrip...
Sleight asked 1/9, 2020 at 3:14
5
Solved
I am changing a create form to become a modal dialog and jquery Unobtrusive validation stops working and don't know how to fix it.
Index.cshtml has a link to trigger a modal dialog.
<a href="#...
Villa asked 27/5, 2014 at 12:45
2
Using ASP.NET Core unobtrusive client-side validation, I want to display the validation summary when a field changes, not just on form submit.
The <div asp-validation-summary="All">...
Sexless asked 30/7, 2020 at 0:47
13
Solved
I am working with ASP.Net MVC3, the easier way to use the client validation would be enabling the jquery.validate.unobtrusive. Everything works fine, for stuff that's right from server.
But when ...
Adal asked 10/12, 2010 at 6:27
5
I've got a form that is using unobtrusive JQuery validation along with a validation summary. It works great. However, this form does an Ajax POST which returns a JSON result. If the result == true,...
Caylor asked 3/3, 2015 at 19:29
5
Validation type names in unobtrusive client validation rules must be
unique. The following validation type was seen more than once:
required
This is referring to the EmailAddress property, he...
Philologian asked 17/3, 2012 at 0:34
2
Solved
I have a model:
public class MyModel{
[Phone]
public string MyTel { get; set; }
}
in the view:
@model MyModel
@Html.EditorFor(x => x.MyTel)
the HTML generated:
<input type="tel" valu...
Saragossa asked 25/4, 2014 at 20:31
1
I have an ASP.NET MVC 5 base project in which I use css bootstrap for designing my pages.
To work property with css bootstrap. I want to be able to override the default behavior of the errorElemen...
Disparate asked 3/4, 2017 at 16:43
2
Solved
My page is validating a field that is not required when I submit, even though there is no validation configured for this field.
Create.cshtml
@model Lawtech.App.ViewModels.ProcessoViewModel
@{
...
Inflate asked 14/9, 2019 at 19:21
21
Can anyone tell me why client side validation is not working in my MVC 4 application.
_layout.schtml
@Scripts.Render("~/bundles/jquery")
@RenderSection("scripts", required: fals...
Medallist asked 25/1, 2013 at 10:55
4
Solved
Is there a way, in an ASP MVC project using unobtrusive validation, to dynamically remove the Required attribute from an element?
The element is decorated with a Required annotation in the view mo...
Inherit asked 16/7, 2015 at 23:4
3
Solved
What is the proper way to override the ErrorPlacement function in jquery.validate.unobtrusive?
Looking at the jquery.validate.unobtrusive.js script it appears that the developers' intention would a...
Senator asked 18/8, 2014 at 2:51
5
Solved
I am using MVC4 w/JQuery and I have a form I created using the @Ajax.BeginForm. It has required fields (set on its view model). I am trying to validate the form before it is submitted back; however...
Hippomenes asked 26/7, 2013 at 12:48
1 Next >
© 2022 - 2024 — McMap. All rights reserved.