EditorFor Multiple RequiredIf Error

Jan 7, 2015 at 6:31 AM
Edited Jan 7, 2015 at 8: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