What is meta? ×

I went to create a new question, typed my (short) title, and long question body, I scrolled down and clicked "Ask Your Question" (actually this happened while editing an old question, which had a title of less than 15 characters, but that's a different issue).

The button is greyed out (like usual when you click), and.. nothing happens.

I reloaded the page and tried resubmitting. Same problem again.

Eventually I noticed, in tiny red writing next to the "Title" input heading, an error:

Title *required - at least 15 characters

..so I entered a longer heading and all worked correctly.

Kind of a usability problem - the error message doesn't appear until you click submit, which you have to scroll down (at least at a screen resolution of 1440x900, which is common for laptops)

Here is an screenshot more clearly demonstrating the issue:

screenshot demonstrating the "invisible" error

Two possible solutions:

  • Scroll the page to the top when you click submit. Might be a bit jarring, as when the page changes, you'd expect to be viewing your newly submitted question..
  • Display a similar message next to the submit button, such as "There were errors with your question: title must be 15 characters or longer", or simply "There was an error with your question, please double-check each input"
share|improve this question
Added screenshot demonstrating the issue.. –  dbr Oct 8 '09 at 23:15
should be "title must be" –  a_m0d Oct 9 '09 at 0:53
Maybe you want to obfuscate your email address. –  Ladybug Killer Oct 9 '09 at 7:47
@John Heh, it's not a huge problem as it's my public/spam'y address, it's part of an image, and a bit pointless given the revision history, but I may as well.. –  dbr Oct 9 '09 at 16:49
add comment

2 Answers

up vote 1 down vote accepted

workaround: when doing the AJAX callback to look up related titles we now return


instead of actually searching on too-short titles.

This means the top part containing the validation error is more likely to be visible, since it won't be "pushed down" by the related questions.

(aside: constructing a valid 15 character title, even for testing, is pretty darn hard.)


share|improve this answer
add comment

You could also display the error message after leaving the title text box without even clicking the submit button. But it is more work to implement.

Or you display one of these red error messages boxes after hitting submit and take care that they are always displayed within the visible area.

share|improve this answer
Your first idea could work.. The code already seems to be there, it's just not activated until the user clicks "Ask your question".. Might just be a case of changing submitbutton.bind(checkTitleLen) to titlebox.blur(checkTitleLen) or something.. –  dbr Oct 9 '09 at 16:42
add comment

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .