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, 2014 at 12:46
  • Yes I am! But the message is only displayed after a page refresh Mar 25, 2014 at 12:59

1 Answer 1


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

  • 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 Mar 25, 2014 at 15:53
  • Use this module. drupal.org/project/js_theming Drupal.messages.set("The Message!", 'error');
    – Cool
    Mar 25, 2014 at 16:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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