How to respond with an error message not specific to any field but whole record?
How to respond with an error message not specific to any field but whole record?
LeonK
Posts: 13Questions: 5Answers: 1
something like { fieldErros:[], status: "your record is too strange!" }
This question has accepted answers - jump to:
This discussion has been closed.
Answers
also It would be right to work with result codes like
Default for rails
At the moment, for a 4xx error to work correctly with Editor you would need to use
ajax
as a function and make the$.ajax
call yourself. Then call thesuccess
callback that theajax
option gives you when you get such an entry (assuming that it also returns valid JSON).I'll look into how this can be improved for future versions.
Allan
And is there way to report "record error" instead of field error?
Yes - there is an
error
property which can be used. It can be used for a form error.Regards,
Allan
Thank you!