Requirement:
When restricting the minimum and maximum date values for date input controls and selecting the date outside this limit, we receive a message 'Less-than-or-Equal-to validation failed'. Is it possible to change this message and display a desired message instead? If yes, how can we achieve the same?
Solution:
To change this date limit message, we need to modify 2 files -
1. InputControlsValidation.properties file (<jasperserver-pro>/WEB-INF/bundles)
fillParameters.error.smallerOrEqual=Less-than-or-Equal-to validation failed.
2. jasperserver_messages.properties file (<jasperserver-pro>/WEB-INF/bundles)
fillParameters.error.smallerOrEqual=Less-than-or-Equal-to validation failed.
We can change this message to a desired one like "Please enter a valid date", save the files, and restart the server for the changes to reflect.
-
How to change the date limit message for date input controls?
Table of contents
User Feedback
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now