can i change the display of the error message ,i want it to be displayed beside the text field just like in username check module..
can i change the display of the error message ,i want it to be displayed beside the text field just like in username check module..
Comments
Comment #1
brendoncrawford commentedI have added the ability to do this in 1.x-6.x-dev. Please allow up to 12 hours for the dev package to update. You will need to make your own javascript plugin using the 'message' hook. Be sure to return false to disable the standard message handling.
Here is an example usage....
Comment #3
szantog commentedSorry, to reopen this old issue, but I tried to use exactly this function.
I made the core-s login form ajaxify, when wrong username or password i get the error message before the form, i need to write it after the form elements
1. I made my module, use the preprocess_page to add my js.
2. The js contains the code in #1, and i see it in page head
3. I tried to explore the args.options in DOM, stopped the running in line: Drupal.Ajax.writeMessage(args.formObj, args.submitter, args.options); But I cant get, what need I modify.
How can i configure the options, to move error message after the form?
The html is:
I need to get this html:
Comment #4
szantog commentedHmm, I don't know, I've just started to learn the jquery + drupal js system because of this task.
I solved it, but I don't know, is this the correct way?