EditorFor Multiple RequiredIf Error

Jan 7, 2015 at 5:31 AM
Edited Jan 7, 2015 at 7:34 AM
When I put both [RequiredIfTrue] and [RequiredIfFalse] annotations
EditorFor throws exception saying I can't have multiple "RequiredIf" attributes in order to have unobtrusive validation
I think there should be a FoolProofEditorFor method to handle this...
I just replaced the field in topic with regular <input>for workaround

Well I couldn't get unobtrusive working for single attribute fields for Foolproof either
Idk why, I put validator, validator.unobtrusive, foolproof.unobtrusive scripts in order