I would like to know if there exists RequiredIf
annotation in MVC 5 because I'm in trouble trying to use it because it seems that it doesn't exists in MVC 5. Is there any solution, or I'm missing some library? (I know it exists in MVC3).
Also is there any alternative for conditional validation in MVC 5?
Thanks in advance.
Required if
is not a built-in attribute. You need to download and import third party library:
MVC Foolproof Validation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With