User tests: Successful: Unsuccessful:
Now you can validate your date and numeric fields.
For e.g
If you have a date field in your Joomla's form and the user enters a wrong date then you will get a fatal error on the page. So its better to validate the date field before saving.
Field 1- YYYY/MM/DD can be validate using class "validate-date"
Field 2- YYYY/MM/DD H:I:S can be validate using class "validate-datetime"
These changes have been added to "validate-uncompressed.js". To test this you will need to minify this file and replace the content of "validate.js" with this.
Let me know if any other information is needed.
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
Category | ⇒ | JavaScript |
I have tested this item unsuccessfully on e7f4cf8
If i understand the issue right then it is not fixed yet.
Replication steps:
Observe: The date is automatically transformed to a current date
Expect: We should validate the date format on the inputting steps when user trying to create a new Feed
@datredweb Thank you for testing.
Have you added the class "validate-date" or "validate-datetime" to that date input field? It won't work without adding the validate class.
Category | JavaScript | ⇒ | Fields JavaScript |
I can see what you are doing here but as it is it is not ready for inclusion in the core. If you can look at how to implement validation on the date fields in the core joomla fields we can always re-open it when it is ready for testing again.
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-05-08 13:06:24 |
Closed_By | ⇒ | brianteeman |
I think it should be kept open. Maybe tested via a different test case. Since this is more like a library fix which allows for new validations ..
Now that it's available it can be used in various parts of the Joomla core ?
Provide the method for testing then
OK.. Will ask one of the team to Submit another PR to implement this in one of the Standard Joomla forms so that the test case can be provided. And provide that link here as well.
Can you minify the
validate-uncompressed.js
file intovalidate.js
with your PR? It will be easyier on merge and test ;)