Answers.Body: <p>You can see in the <a href="https://github.com/pixelandtonic/ContactForm/blob/master/contactform/controllers/ContactFormController.php#L148" rel="nofollow">code for the plugin on GitHub</a> that it sets a 'notice':</p>
  
  <pre><code>craft()-&gt;userSession-&gt;setNotice($settings-&gt;successFlashMessage);
  </code></pre>
  
  <p>As the <a href="https://craftcms.com/classreference/services/UserSessionService#setNotice-detail" rel="nofollow">official documentation</a> mentions, this can later be grabbed with the following code:</p>
  
  <pre><code>{% set message = craft.session.getFlash('notice') %}
  </code></pre>
  
  <p>Then used as a normal message thereafter.</p>
  
  <pre><code>{{ message }}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-08T21:10:51.023Z
Answers.Text: Are there new URLs for the referenced links, here?
Answers.UserDisplayName: buck1112
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-11T09:32:37.697Z
Answers.LastActivityDate: 2016-08-11T10:06:34.427Z
Answers.LastEditDate: 2016-08-11T10:06:34.427Z
Answers.UserDisplayName: Stephen Hamilton
Body: <p>Kind of feel silly having to ask this but I cannot for the life of me get a success message to display after the redirect when the Contact Form submits.  </p>
  
  <p>I just am not sure how to call it in the template view.</p>
  
  <p>I have tried various things like this:</p>
  
  <pre><code>{% set success = craft.config.get('successFlashMessage', 'contactform') %}
  
  {% if success %}
    &lt;div class="resp"&gt;&lt;h3&gt;{{ success }}&lt;/h3&gt;&lt;/div&gt;
  {% endif %}
  </code></pre>
  
  <p>But just cannot seem to grab it.</p>
  
  <p>I did look at the documentation on Github and was not able to find it.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-02-03T00:24:37.377Z
Comments.Text: Is there a particular reason you want to use flash and not a redirect hidden input? https://github.com/pixelandtonic/ContactForm#redirecting-after-submit
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-02-03T23:01:28.180Z
Comments.Text: No, I just cannot get it to display a message either way, I would like it to stay on the same page but it does not absolutely have to.
Comments.UserDisplayName: Rockwell Rice
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-02-03T23:54:00.200Z
Comments.Text: So you're saying even if you add a `<input type="hidden" name="redirect" value="success">`, you don't get redirected to `/success`?
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-02-04T00:32:33.683Z
Comments.Text: The redirect works fine, but there is no message, sorry if it is unclear what I was asking, I am trying to figure out how to display a "your message has been sent" type message on the screen when the message has been successfully sent.
Comments.UserDisplayName: Rockwell Rice
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-02-04T00:34:41.810Z
Comments.Text: Ahh, if you're redirecting to a "success" template, then you can just hard code the "your message has been sent" message into the template. If there was a problem sending the email, the user is going to get an error page (either one supplied by you or a default Craft one)
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-02-04T00:41:49.123Z
Comments.Text: Right, I really wanted to just flash the message, remove the form and possibly add the name though and keep them on the same page.  It's really not a big deal, I just seemed like one of those things that I thought would be simple at first and then I got totally bogged down doing and wanted to figure it out.
Comments.UserDisplayName: Rockwell Rice
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-08-11T11:33:00.150Z
Comments.Text: Are you using AJAX to submit your form? Or are you just redirecting to the same page upon submission?
Comments.UserDisplayName: Mats Mikkel Rummelhoff
Tags: <plugin-contactform>
Title: How to display success message using the Contact Form plugin
ThreadText: # How to display success message using the Contact Form plugin
  
  (Asked by: username_0 on 2016-02-02)
  
  Kind of feel silly having to ask this but I cannot for the life of me get a success message to display after the redirect when the Contact Form submits.
  
  I just am not sure how to call it in the template view.
  
  I have tried various things like this:
  
  ```
  {% set success = craft.config.get('successFlashMessage', 'contactform') %}
  
  {% if success %}
    <div class="resp"><h3>{{ success }}</h3></div>
  {% endif %}
  
  ```
  
  But just cannot seem to grab it.
  
  I did look at the documentation on Github and was not able to find it.
  
  **Tags:** plugin-contactform
  
  > **Comments:**
  > **username_1**: Is there a particular reason you want to use flash and not a redirect hidden input? https://github.com/pixelandtonic/ContactForm#redirecting-after-submit  
  > **username_0**: No, I just cannot get it to display a message either way, I would like it to stay on the same page but it does not absolutely have to.  
  > **username_1**: So you're saying even if you add a `<input type="hidden" name="redirect" value="success">`, you don't get redirected to `/success`?  
  > **username_0**: The redirect works fine, but there is no message, sorry if it is unclear what I was asking, I am trying to figure out how to display a "your message has been sent" type message on the screen when the message has been successfully sent.  
  > **username_1**: Ahh, if you're redirecting to a "success" template, then you can just hard code the "your message has been sent" message into the template. If there was a problem sending the email, the user is going to get an error page (either one supplied by you or a default Craft one)  
  > **username_0**: Right, I really wanted to just flash the message, remove the form and possibly add the name though and keep them on the same page.  It's really not a big deal, I just seemed like one of those things that I thought would be simple at first and then I got totally bogged down doing and wanted to figure it out.  
  > **username_2**: Are you using AJAX to submit your form? Or are you just redirecting to the same page upon submission?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2016-08-11. Score: 4
  
  You can see in the [code for the plugin on GitHub](https://github.com/pixelandtonic/ContactForm/blob/master/contactform/controllers/ContactFormController.php#L148) that it sets a 'notice':
  
  ```
  craft()->userSession->setNotice($settings->successFlashMessage);
  
  ```
  
  As the [official documentation](https://craftcms.com/classreference/services/UserSessionService#setNotice-detail) mentions, this can later be grabbed with the following code:
  
  ```
  {% set message = craft.session.getFlash('notice') %}
  
  ```
  
  Then used as a normal message thereafter.
  
  ```
  {{ message }}
  
  ```
  
  > **Comments:**
  > **username_4**: Are there new URLs for the referenced links, here?  
  
  ---
  
  