Comments (2)
I added your properties to web-example project, it seems to be working well with your expectations. Have you checked "IdType
"'s value while changing the date field?
from expressiveannotations.
Yes, it's got the right value.
If I enter a date in the future it all works. So the RequiredIf and AssertThat are passing at that point.
Interesting to note that If I use a standard Required instead of RequiredIf then I get both the "Enter ID Expiry" when nothing is entered, and the "ID has expired" when I enter a date in the past. Unfortunately I need the RequiredIf.
It's only when I use the RequiredIf that it seems to fall over.
FYI
If I disable client side validation in the web.config then both error messages are returned properly. It's only the client side validation that seems to be incorrect for some reason.
from expressiveannotations.
Related Issues (20)
- ValueParser doesn't generate *-parsersmap attribute when declared in Metadata
- RequiredIf Attribute not working - 2.7.4 HOT 1
- ExpressiveAnnotation Conflict with Jquery datepicker HOT 1
- Client-side validation: AssertThat vs Kendo NumericTextBox
- AssertThat on a property named "Date"
- RequiredIf error message support with shared localizer(for multi-language) in MVC project HOT 1
- AssertThat always ignored HOT 1
- Custom methods not working HOT 4
- AssertThat with mathematical formulas ignores decimal places
- No more than 27 unique attributes
- RequiredIf rule suddenly requiring full namespace
- sporadic event which corrupts ProcessStorage
- Learning ExpressiveAnnotations - RequiredIf doesn't display the error message
- Can this be used with Blazor?
- Content Security Policy (CSP) unsafe-eval
- Concurrent validation using RequiredIfAttribute throws NullReferenceException HOT 1
- Regex copied from moment.js is vulnerable to ReDOS attack
- Setting the default error message
- Blazor Web Assembly Error (.NET Core 8.0)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from expressiveannotations.