RequiredIf not working in MVC 5?

I would like to know if annotation exists in MVC 5 RequiredIfbecause I cannot use it because it seems that it does not exist in MVC 5. Is there any solution or am I missing some library? (I know that it exists in MVC3).

Is there also an alternative for conditional validation in MVC 5?

Thanks in advance.

+4
source share
1 answer

Required ifnot a built-in attribute. You need to download and import a third-party library:

MVC reliability check

+14
source

All Articles