Remote Validation is the ability to call a custom server-side validation method via the client-side.
Questions tagged [remote-validation]
166 questions
1
vote
0 answers
Remote validation is not being executed in ASP.NET MVC5
I am developing an ASP.NET MVC web application. I am doing remote validation to one of my view model in controller. But it is not working. Remote validation method in controller is not even executed. I searched solutions online and that could not…

Wai Yan Hein
- 13,651
- 35
- 180
- 372
1
vote
0 answers
MVC Remote Controller action is only called on form submit
To my understanding, I thought the remote validation calls the controller action as soon as the user leaves a textbox. I am trying to validate a username (email) but the controller action is only called when I submit the form (when i click the…

floormind
- 1,868
- 5
- 31
- 85
1
vote
0 answers
Angular - async context validation
I am newbie in angular so please keep it in mind. I want to create dynamically some items. In my example item has id and name. Items should not have the same names within scope. Moreover items should not have the same name as items already stored in…

Marek
- 193
- 1
- 2
- 11
1
vote
1 answer
Remote Validation with Knockout in MVC 4, Allowing invalid data to save
Hi there I am using remote validation with knockout validation rules to check if a client is booked at the same time as the proposed date. I finally got the viewmodel sending data to the controller validation method and the method does return a true…

JH_Dev
- 426
- 7
- 26
1
vote
1 answer
How to suppress asp.net mvc remote validation until all fields provided on form?
I have a model which has following properties:
public class AddAdsItemViewModel
{
[Remote("AdsItemExist", "AdsItem", "Administrator", ErrorMessage = "Already Exists.", HttpMethod = "POST", AdditionalFields = "AdsTypeId, AdsSizeId,…

Varan Sinayee
- 1,105
- 2
- 12
- 26
1
vote
0 answers
Remote Validation - complex array model - Rows values not passed
Remote validation happens only for 1st element. For other elements null value goes in the parameter so no validation happens. Why is it passing null values for rest of the rows? Only row 0 values are passed. What am I doing wrong? Or is there…

Raj
- 166
- 1
- 11
1
vote
1 answer
MVC Remote Attribute Issue
I setup a remote validator in MVC to be sure that a company doesn't already exist when creating or editing a company on my page. Here is the model:
public class AdminCompany
{
public int CompanyId { get; set; }
[Display(Name = "Company…

Icemanind
- 47,519
- 50
- 171
- 296
1
vote
0 answers
MVC Remote Validation Additional fields naming
I have Remote validation for Postal code field and country Id is passed to it as additional field. following is the code:
public JsonResult IsValidPostalCodeForCountry(string CompanyPostalCode, string CompanyCountryID)
{
//My…

SurajS
- 473
- 7
- 20
1
vote
0 answers
Remote validation with additional fields to show errors only in validation summary
How do I show up only the Remote validation errors in the validation summary and focus all the corresponding textboxes in red color.
[Required]
[Display(Name = "First Name")]
[Remote("IsNameExists", "Validation", AdditionalFields =…

ram sudheer
- 139
- 1
- 13
1
vote
2 answers
Parsley Remote validation is not preventing form submission
I am using Parsley Remote validation with angularJS..using the async validator with add new user form is working fine, it uses the API and checks if the user name is already existed, and the email as well, if the user name is there it returns a 200…

Mo Bdair
- 243
- 1
- 5
- 17
1
vote
0 answers
How to alter jQuery validation's remote method response
I need to validate a phone number through remote method from validation, but also the response i get is not true/false and the form doesn't validate. It is possible to alter the reponse after i use the parameter which is returned?
remote: {
…

Alex7
- 560
- 3
- 19
1
vote
1 answer
MVC Remote Attribute Additional Fields
The jquery remote validation is adding the prefix of the input field name (mymodel.field1) to each additional field listed in data-val-remote-additionalfields. In my additional fields I have a hidden field that is not part of the model so it has a…

Csharpfunbag
- 395
- 3
- 19
1
vote
1 answer
Username checking not working for form with multiple register models (mvc)
I have a page which allows an admin to add multiple users to the database at once, with usernames and passwords. I use remote username checking, so in my account models I have this:
public class RegisterModel
{
[Required]
[Display(Name =…

barnacle.m
- 2,070
- 3
- 38
- 82
1
vote
1 answer
Triggering an event on failed remote validation asp.net mvc 4
I have some remote validation and normal validation set on some properties in my view model.
When the validation is run, I also run a function where I display a tick or a cross next to the validated field, depending on whether the field was valid or…

ptf
- 3,210
- 8
- 34
- 67
1
vote
1 answer
JQuery Validator plugin: Remote call not working
I'm trying to validate an user name with a remote validation.
here is the js code
$('#form_reg').validate({
rules: {
username: {
minlength: 6,
required: true,
remote: { url:"validate_usr.php", async:false }
},
…

glms
- 13
- 3