Answers.Body: <p>You could add a simple css hack to your webform which sets system messages on the front page of the form to <code>display: none</code>. That's not a perfect solution because it will hide <em>all</em> of them, but it's something.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-02T04:07:59.940Z
Answers.Text: yes just use css to hide it; we like it/use it; this is the first time I’ve ever heard of anyone trying to hide it
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-01T22:03:28.230Z
Answers.LastActivityDate: 2018-06-01T22:03:28.230Z
Answers.UserDisplayName: Coleman
Answers.Body: <p>There is no way from preventing this message unless you are a developer and write your own drupal module which hides this message. </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-05-27T14:58:52.650Z
Answers.Text: I've looked at @jackrabbithanna's comment above and that comes close... is there anywhere else that actually shows the code necessary for this module? No problems if not - just wondering if it's already been done. Thanks!
Answers.UserDisplayName: Andyg8
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-05-28T07:19:21.307Z
Answers.Text: You can take a look at the webform_civicrm code at https://github.com/colemanw/webform_civicrm
Answers.UserDisplayName: Jaap Jansma - CiviCooP
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-05-23T07:07:03.100Z
Answers.LastActivityDate: 2018-05-23T07:07:03.100Z
Answers.UserDisplayName: Jaap Jansma - CiviCooP
Body: <p>We have a Webform that creates a single membership. We've set it to use the 'existing contact' which very helpfully pre-fills the webform with the existing user's details - or with the details corresponding to the contact's checksum from a CiviMail. This is all brilliant so far!</p>
  
  <p>However, when the page loads it also shows all the contact's existing memberships. And it shows them in the page's system 'messages' block. </p>
  
  <p>In our use case we don't want to see existing memberships. And even if we did we'd want to see them in a webform component that we can control the behaviour of. When they appear in the system messages block it looks like an extra communication to the user and is rather confusing. </p>
  
  <p>So, is it possible to prevent them from loading at all? Or at least have them load as a component of the webform rather than displaying in the messages block?</p>
  
  <p>We are on Drupal 7.58, Civi 5.0.0</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-23T00:00:25.883Z
Comments.Text: You can try something similar to: https://stackoverflow.com/questions/4942785/alter-messages-in-drupal-7
Comments.UserDisplayName: jackrabbithanna
Tags: <civimember><webform-civicrm>
Title: Stop Webforms loading memberships in the messages section for 'existing contacts'?
ThreadText: # Stop Webforms loading memberships in the messages section for 'existing contacts'?
  
  (Asked by: username_0 on 2018-05-22)
  
  We have a Webform that creates a single membership. We've set it to use the 'existing contact' which very helpfully pre-fills the webform with the existing user's details - or with the details corresponding to the contact's checksum from a CiviMail. This is all brilliant so far!
  
  However, when the page loads it also shows all the contact's existing memberships. And it shows them in the page's system 'messages' block.
  
  In our use case we don't want to see existing memberships. And even if we did we'd want to see them in a webform component that we can control the behaviour of. When they appear in the system messages block it looks like an extra communication to the user and is rather confusing.
  
  So, is it possible to prevent them from loading at all? Or at least have them load as a component of the webform rather than displaying in the messages block?
  
  We are on Drupal 7.58, Civi 5.0.0
  
  **Tags:** civimember, webform-civicrm
  
  > **Comments:**
  > **username_1**: You can try something similar to: https://stackoverflow.com/questions/4942785/alter-messages-in-drupal-7  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2018-06-01. Score: 2
  
  You could add a simple css hack to your webform which sets system messages on the front page of the form to `display: none`. That's not a perfect solution because it will hide *all* of them, but it's something.
  
  > **Comments:**
  > **username_3**: yes just use css to hide it; we like it/use it; this is the first time I’ve ever heard of anyone trying to hide it  
  
  ---
  
  ### Answer by username_4 on 2018-05-23. Score: 0
  
  There is no way from preventing this message unless you are a developer and write your own drupal module which hides this message.
  
  > **Comments:**
  > **username_0**: I've looked at @username_1's comment above and that comes close... is there anywhere else that actually shows the code necessary for this module? No problems if not - just wondering if it's already been done. Thanks!  
  > **username_4**: You can take a look at the webform_civicrm code at https://github.com/colemanw/webform_civicrm  
  
  ---
  
  