Answers.Body: <p>If you are using Drupal then you can use <a href="https://www.drupal.org/project/webform" rel="nofollow noreferrer">Webform</a> + <a href="https://www.drupal.org/project/webform_conditional" rel="nofollow noreferrer">Webform Conditional</a> modules to hide show certain fields. </p>
  
  <p>Else you can add JS to CiviCRM Membership form through extension to hide/show postal code based on country selected.</p>
  
  <p>REF: <a href="https://docs.civicrm.org/dev/en/latest/standards/javascript/" rel="nofollow noreferrer">https://docs.civicrm.org/dev/en/latest/standards/javascript/</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-12T10:25:50.087Z
Answers.LastActivityDate: 2018-09-12T10:25:50.087Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>I'd like to vary membership fields for members from different locations, can anyone help? </p>
  
  <p>Essentially I'd like to vary the fields that members are required to fill in when they sign up from a different country. This is specifically with regard to addresses as UK postal addresses have postcodes whereas other countries like Bahrain do not. </p>
  
Tags: <drupal><civimember><addresses><postcode>
Title: Membership sign ups
ThreadText: # Membership sign ups
  
  (Asked by: username_0 on 2018-09-12)
  
  I'd like to vary membership fields for members from different locations, can anyone help?
  
  Essentially I'd like to vary the fields that members are required to fill in when they sign up from a different country. This is specifically with regard to addresses as UK postal addresses have postcodes whereas other countries like Bahrain do not.
  
  **Tags:** drupal, civimember, addresses, postcode
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-09-12. Score: 1 | Accepted answer
  
  If you are using Drupal then you can use [Webform](https://www.drupal.org/project/webform) + [Webform Conditional](https://www.drupal.org/project/webform_conditional) modules to hide show certain fields.
  
  Else you can add JS to CiviCRM Membership form through extension to hide/show postal code based on country selected.
  
  REF: <https://docs.civicrm.org/dev/en/latest/standards/javascript/>
  
  
  ---
  
  