Questions tagged [foolproof-validation]

MVC Foolproof Validation is a library that complements the Data Annotation validation provided in ASP.NET MVC.

MVC Foolproof Validation is a library that complements the Data Annotation validation provided in ASP.NET MVC.

It's released under the Microsoft Public License.

65 questions
0
votes
0 answers

Foolproof RequiredIf condition with false status not working

I have a JoinStatus field with True or False condition. I also have 2 textboxes named JoiningDate and NotJoiningReason.If user selects checkbox(True Condition) JoiningDate textbox should be validated else (False Condition)NotJoiningReason textbox…
ksg
  • 3,927
  • 7
  • 51
  • 97
0
votes
1 answer

MVC Foolproof validation - Cannot read property 'value' of undefined

I am using MVC Foolproof validation in my application. Scenario is I have a dropdownlist named CustomerType with the the following values Id Name 1 Student 2 Non-Employed 3 Employed 4 SelfEmployed and I have one more…
ksg
  • 3,927
  • 7
  • 51
  • 97
0
votes
1 answer

MVC 5 Foolproof client-side validation

I'm having trouble with client-side validation with the nuget foolproof package. My Model public class Item { public int Id { get; set; } [Required] public double Quantity { get; set; } [RequiredIfNotEmpty("Quantity")] public…
kwv84
  • 943
  • 3
  • 11
  • 25
0
votes
1 answer

MVC Rebind Foolproof Validation

Hi I am loading a form and using unobtrusive clientside validation extended with the foolproof nuget package. This all works well but now I am trying to load parts of the form with ajax. Once these parts have been loaded in using ajax, the…
Pete
  • 57,112
  • 28
  • 117
  • 166
0
votes
1 answer

MVC FoolProof Validation showing exception while calling SaveChange method

This question mayt sound duplicate but I am not satisfied with any of the answers as some are suggesting MVC Foolproof validaiton for conditional validaiton and some tells it dont work well with entity framework I am using MVC Foolproof RequiredIf…
ksg
  • 3,927
  • 7
  • 51
  • 97
0
votes
1 answer

MVC Foolproof Validation If Greater Than Value

I have an MVC form with radio buttons indicating a business type. If the business type is either a Limited or PLC, the form shows additional company registration number and registered office address fields. I want to ensure both fields are completed…
ComfortablyNumb
  • 1,448
  • 10
  • 37
  • 64
0
votes
0 answers

MVC Foolproof Validation not working in Forms application

I have added a reference to MVC Foolproof Validation to my project. I am using one of the annotations on my model:
Kyle W
  • 3,702
  • 20
  • 32
0
votes
3 answers

How to fix the model to correctly use the MVC Foolproof library?

I am trying to use MVC Foolproof library to validate my model and show error message respectively. However I am not applying the Data Annotation correctly so the validation does not works. My requirement is that I have two checkboxes and atleast one…
Adnan Yaseen
  • 833
  • 1
  • 15
  • 44
0
votes
1 answer

Foolproof multiple validators on the same fields

I currently use foolproof for that validation: [RequiredIfNot("type", 3, ErrorMessage = "Please enter at least one value")] public int[] audites { get; set; } but customer wants to add validation as that: [RequiredIfNot("type", 3, ErrorMessage =…
clement
  • 4,204
  • 10
  • 65
  • 133
0
votes
1 answer

System.NotImplementedException : "The method or operation is not implemented." FoolProofValidation

In my MVC4 application I'm using MVC FoolProof library In my Metadata class I have public class R_DealsMetaData { public int ID { get; set; } public int UserId { get; set; } public bool CodeGenerated { get; set; } …
Kumar
  • 303
  • 6
  • 17
0
votes
1 answer

Async Foolproof Validation

When using MVC Foolproof Validation, is it possible to have a custom validation asynchronous? I am wanting to retrieve an object from a DbSet in a custom validation, to check if the object exists. Is this possible? If not, is there a work around…
Simon
  • 7,991
  • 21
  • 83
  • 163
0
votes
1 answer

MVC Foolproof Validation multiple error messages

I am building some custom validations for a ViewModel and have a question in regards to having multiple error messages. I am wanting to create a custom validation on a string attribute. Depending on the values being compared, I wish to output…
0
votes
1 answer

FromDate ToDate clientside validation using foolproof in MVC not working

I have two date field in my Page fromDate and ToDate. ToDate should be greater than FromDate. I need to validate it in client side. I'm using Foolprof for clied side validation reference added using Foolproof; Script added
b_in_U
  • 640
  • 2
  • 7
  • 22
0
votes
1 answer

Mvc Foolproof not working on mvc3

I have an MVC3 application. This is the model: public class Customer { [Required] public string Email { get; set; } [Required] public string Answer1 { get; set; } [Required] [NotEqualTo("Answer1")] public string Answer2…
Gerald
  • 1,033
  • 5
  • 20
  • 41
-1
votes
2 answers

RequiredIf Not Firing Client Side Validation Styling

In my Model I have this: [RequiredIf("Operation", 2)] public string Test_Type { get; set; } I am using MVC Fool Proof Validation. In my view: