Error Handling on editor forms?

Error Handling on editor forms?

abixalmonabixalmon Posts: 1Questions: 0Answers: 0
edited September 2012 in Editor
I would like to show error message on editor but i am always getting -
[quote]An error has occurred - Please contact the system administrator[/quote]

IMG Link - http://i.imgur.com/NQZqg.jpg

I would like to show:
aaaa is required, xxxx is required and must be numeric

[code]...
Field::inst( 'aaaa' )
->validator( 'Validate::required' ),
Field::inst( 'xxxx' )
->validator( 'Validate::numeric')
...[/code]

Debug Info - http://debug.datatables.net/eraqoz

Replies

  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    So that particular error message means that there has been an error getting JSON from the server. Most likely a JSON encoding error (which would actually hold 'proper' error messages). If you use Firebug or Inspector, what do they show is being returned from the server?

    Thanks,
    Allan
This discussion has been closed.