rondinos
2 Jan 2012, 9:00 PM
Hello and happy new year everyone.
The problem is that I am using an API with Ext direct and I do not have much control of the response. I am getting a json response and all the normal fields are with double quotes.
e.g. "country":"USA"
The ones that are NULL the api sends them back as:
"birthday":false
How can I tell ExtJS to ignore those values and leave then as null, because it tries
to put the string "false" in the date textfield, and I am getting validation error:
"false is not a valid date - it must be in the format m-d-Y"
The problem is that I am using an API with Ext direct and I do not have much control of the response. I am getting a json response and all the normal fields are with double quotes.
e.g. "country":"USA"
The ones that are NULL the api sends them back as:
"birthday":false
How can I tell ExtJS to ignore those values and leave then as null, because it tries
to put the string "false" in the date textfield, and I am getting validation error:
"false is not a valid date - it must be in the format m-d-Y"