I bound an action to my flag to display a message on flagging. However because I am using AJAX flags the message is only displayed after I refresh the page.

Is there any way to make the message appear after the flag is flagged and not on page reload?


  • Are you using rules ? – Anil Sagar Mar 25 '14 at 12:46
  • Yes I am! But the message is only displayed after a page refresh – Yassin Tahtah Mar 25 '14 at 12:59

This feature already there with flags module. enter image description here Please check in your flags settings page.

| improve this answer | |
  • I'm using flag dialog to fill out a form that is rendered in a pop up menu, this seems to break the flagged message. Also the message is limited in length. I really would like to be able to set a Drupal message – Yassin Tahtah Mar 25 '14 at 15:53
  • Use this module. drupal.org/project/js_theming Drupal.messages.set("The Message!", 'error'); – ARUN Mar 25 '14 at 16:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.