uon-nuget / UoN.ExpressiveAnnotations.NetCore

Annotation-based conditional validation library.
Other
29 stars 12 forks source link

RequiredIf firing immediately after changing dropdown #29

Open urskiran opened 5 years ago

urskiran commented 5 years ago

I have a problem with RequiredIf I am using the requiredif for payment info collection (server-side validation), based on dropdown (PaymentMethod) selection some of the fields are required (here I am showing and hiding the fields based on payment method by using jquery). My problem is the messages are displaying immediately after changing the dropdown without submitting the form. Please help me out. Thanks Kiran