[Solved] Problem with "type": "date", it does not work
[Solved] Problem with "type": "date", it does not work
BernardoLima
Posts: 20Questions: 0Answers: 0
* Solution:
> I have kept the type as "text" and added a PHP code to validate the date, but I still don't know what's the problem with the "date" type.
I have tried to insert a date field, but when I inserted the code below, the table collapses, but when I change the type to text it works fine.
Do you know why it isn't accepting the type "date"?
Code of the date field, that does not work and collapses the table:
[code] "label": "Data",
"name": "data",
"type": "date",
"dateFormat": "dd\/mm\/y",[/code]
The same code but edited the field to "text" type, and removed the "dateFormat" option, and the table works fine:
[code] "label": "Data",
"name": "data",
"type": "text"[/code]
> I have kept the type as "text" and added a PHP code to validate the date, but I still don't know what's the problem with the "date" type.
I have tried to insert a date field, but when I inserted the code below, the table collapses, but when I change the type to text it works fine.
Do you know why it isn't accepting the type "date"?
Code of the date field, that does not work and collapses the table:
[code] "label": "Data",
"name": "data",
"type": "date",
"dateFormat": "dd\/mm\/y",[/code]
The same code but edited the field to "text" type, and removed the "dateFormat" option, and the table works fine:
[code] "label": "Data",
"name": "data",
"type": "text"[/code]
This discussion has been closed.
Replies
Allan