Remote Validation is the ability to call a custom server-side validation method via the client-side.
Questions tagged [remote-validation]
166 questions
0
votes
2 answers
jquery validate remote validation only works if field is changed
"profile_form", 'id' => "profile_form",'name'=>"profile_form");
echo form_open_multipart("$form_action",$attributes);
?>

Aman Aujla
- 173
- 3
- 12
0
votes
1 answer
Using remote validation to check that a field has a value not firing if field has no value
I have received a directive from a superior to use Remote Validation instead of a RequiredIf attribute for checking that a certain field has a value if it is able to be user edited.
Right now, my code looks like this -
View Model
public class…

Andrew Gray
- 3,756
- 3
- 39
- 75
0
votes
3 answers
jQuery Remote validation for multiple fields
I have a form with two fields User ID and Email ID. I am trying to validate value of each field is already taken or not using same php file with jQuery remote validation.
But my confusion is how should be the remote file in my case (validate.php).…

klari
- 25
- 2
- 5
0
votes
2 answers
Remote validation not work
I have View:
@model MvcApplication2.Models.HomeModel
@{
ViewBag.Title = "Home";
}
Home
Witaj @Model.UserName @using (Html.BeginForm()) { Podaj hasło @Html.PasswordFor(m => m.Password) …
netmajor
- 6,507
- 14
- 68
- 100
0
votes
1 answer
Is server-side validation an appropriate use of ASP.NET WebAPI ApiController action
Before WebAPI, I did all client-side remote validation calls using regular MVC action methods. With WebAPI, I can now have POST, PUT, DELETE, and GET methods on an ApiController. However, validation still needs to happen.
I have successfully been…

danludwig
- 46,965
- 25
- 159
- 237
0
votes
1 answer
Remote validation attribute in MVC3 invalid get format
I trying to use remote validation for the first time, but am encountering problems with the parameters passed inot the remote validation method.
My model is as follows:
public class PerinatalWomanView : IPerinatalWoman
{
[Required(ErrorMessage =…

Peter Smith
- 5,528
- 8
- 51
- 77
0
votes
4 answers
How to handle Remote Attributes on Model Edit? ASP.Net MVC3
I'm using Remote Attribute in my Model to check duplicate Page Titles as follows
public class Page
{
[Remote("CheckDuplicate", "Page", ErrorMessage = "Title already taken")]
public string Title { get; set; }
}
And In controller, I'm returning…

Unknown Coder
- 1,510
- 2
- 28
- 56
0
votes
0 answers
How do I create a remote validation code which is reusable
I need to create the same remote validation on 50 properties.
I have added this remote validation
[DropDownSelected("PCP")]
public Guid ProIdentifier { get; set; }
and I need to Use this code for 50 different properties but with different names.

Balpreet_1988
- 29
- 5
0
votes
1 answer
Remote validation not working for guid
[Remote("DropDownSelected", "Patient")]
public Guid SexIdentifier { get; set; }
public ActionResult DropDownSelected(object value)
{
var x = ((Guid)value).ToString();
string xsd = value.ToString();
var abc =…

Balpreet_1988
- 29
- 5
0
votes
1 answer
How can I show the remote validation message with a jquery in MVC3?
I have a JQuery to show a remote validation message but I only want it to execute for the remote validation and not the required validation.
So far I have
$('#MyElement').keyup(function () {
if (!!myEmailTimeoutChecker) {
…

Pittfall
- 2,751
- 6
- 32
- 61
0
votes
1 answer
What is the best way to set up a sort of a timer for user validation using MVC 4
I have set up some remote validation in my controller for email validation so that the email can be verified right away. I am hoping to take this a little bit further and validate the email as the user is still typing. Right now it validates when…

Pittfall
- 2,751
- 6
- 32
- 61
0
votes
2 answers
Remote Validation in asp.net mvc 4.0 is called on mouseclick not on textchange?
I experience a very strange behavior with Remote Validation in asp.net mvc.
These are the steps to reproduce the behavior:
1.) Enter user name "1" in the database
2.) Enter user name "1" in the Create User dialog -> nothing happens, I expected an…

Pascal
- 12,265
- 25
- 103
- 195
0
votes
1 answer
jQuery remote validation not working on keypress, only working on focus change
I have a view model
public class UserRegister
{
[Remote("CheckUserEmail")]
public string Email { get; set; }
}
There is a Register view which is strongly typed with UserRegister model.
@Html.EditorFor(model =>…

HashCoder
- 946
- 1
- 13
- 32
0
votes
1 answer
Rectify the input at client side using RemoteValidation
Is there any possibility of rectifying the input at client side using Remote Validation?
For example, the user will enter the date as 010101 which means 01-Jan-2001, can Remote Validation reflect/pass the rectified value (010101 into 01-Jan-2001)…

bjan
- 2,000
- 7
- 32
- 64
-1
votes
2 answers
MVC Remote Validation Not calling function or working
MVC Remote Validation not working, I'm new to MVC, any help is appreciated:
WebConfig:
Controller:
…

a ridi
- 125
- 2
- 13