If you do something like, say, enter a title of 600 characters and click Save, you'll get two JS pop-ups and then some JS barf.

This needs to be fixed, but we also need a design issue for figuring out what to do on validation errors in general with Edit module.

Comments

Title:Validation errors result in JS pop-ups and JSON barfValidation support: validation errors currently result in JS alert()s with JSON barf
Version:7.x-1.x-dev» 8.x-1.x-dev
Assigned:Unassigned» Wim Leers
Category:bug» task
StatusFileSize
new45.68 KB

Current design:

Screen Shot 2012-10-26 at 12.15.44.png

StatusFileSize
new17.6 KB

I'm currently working on this; this is what it currently looks like for type=direct fields.

Screen Shot 2012-10-31 at 15.15.30.png

Version:8.x-1.x-dev» 7.x-1.x-dev
Status:Active» Patch (to be ported)
StatusFileSize
new10.89 KB
new15.43 KB

In #3, only type=form validation was supported, now type=direct and type=direct-with-wysiwyg are also supported.

Screen Shot 2012-11-01 at 13.27.59.pngScreen Shot 2012-11-01 at 13.28.37.png

It's not super pretty, but we can iterate on how it looks post-feature freeze.

http://drupalcode.org/project/edit.git/commit/d68a6ed

Status:Patch (to be ported)» Closed (fixed)

Issue tags:+Edit D7 Backport