Answers.Body: <p>It was definitely the known bug.
  I upgraded to  4.6.38 and no longer have the problem.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-13T16:55:15.357Z
Answers.LastActivityDate: 2018-08-13T16:55:15.357Z
Answers.UserDisplayName: Michele Rizack
Answers.Body: <p>Sounds like <a href="https://issues.civicrm.org/jira/browse/CRM-16929" rel="nofollow noreferrer">https://issues.civicrm.org/jira/browse/CRM-16929</a>.
  You might need to apply the 3 patch that were submitted to this issue -</p>
  
  <ul>
  <li><p><a href="https://github.com/civicrm/civicrm-core/pull/7191" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/pull/7191</a></p></li>
  <li><p><a href="https://github.com/civicrm/civicrm-core/pull/7286" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/pull/7286</a></p></li>
  <li><p><a href="https://github.com/civicrm/civicrm-core/pull/7289" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/pull/7289</a></p></li>
  </ul>
  
  <p>The first two are pretty longer patch so not sure if they will be applied directly. Recommendation is to upgrade CiviCRM to the latest version.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-04T08:50:03.090Z
Answers.LastActivityDate: 2018-06-04T08:50:03.090Z
Answers.UserDisplayName: jitendra - fuzion
Answers.Body: <p>One way to do it is to write <a href="https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_buildForm/" rel="nofollow noreferrer"><code>hook_civicrm_buildForm</code></a> and use form id as a trigger in if condition and use jQuery to remove/disable billing section when specific option is selected.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-05T19:28:01.637Z
Answers.LastActivityDate: 2018-06-05T19:28:01.637Z
Answers.UserDisplayName: Hassan Farooq
Body: <p>Using CiviEvent, I have an event with a priceset that includes various prices, but also a zero fee option.  The billing block information should not be required if zero fee is selected, but I can't get it to work.</p>
  
  <p>I am open to ideas for workarounds.  I am not able to upgrade the CiviCRM version at this point.</p>
  
  <p>On the web event registration form, before clicking continue:</p>
  
  <ul>
  <li>If a non-zero fee is selected, the billing block correctly appears
  and shows as required to fill in if Paypal not selected.</li>
  <li>If the zero fee is selected, the billing block correctly does not appear.</li>
  </ul>
  
  <p>BUT</p>
  
  <p>When the user clicks the continue button after selecting the zero-fee option, an Error message comes up about fields in the billing bock being required.  This is despite the billing block  not being shown to the user (correctly as there should not be shown when zero fee).</p>
  
  <p>For the first-time click, it also includes billing firstname/lastname, which I would expect to be taken from the Individual firstname/lastname that were filled in </p>
  
  <p>If I click the continue a second time, it no longer mentions billing firstname/lastname, but it still shows some billing block fields as being required.</p>
  
  <p>Billing First Name is a required field.
  Billing Last Name is a required field.
  Street Address is a required field.
  City is a required field.
  State/Province is a required field.
  Postal Code is a required field.
  Country is a required field.</p>
  
  <p>The second time:</p>
  
  <p>Street Address is a required field.
  City is a required field.
  State/Province is a required field.
  Postal Code is a required field.
  Country is a required field.</p>
  
  <p>I have version 4.6 so it might the bug below, but I am not sure.
  <a href="https://civicrm.stackexchange.com/questions/24741/zero-fee-for-a-paid-event">Zero fee for a paid event</a></p>
  
  <p>thanks,
  Michele</p>
  
Tags: <civievent><forms><price-sets>
Title: How to have form not require billing address if zero fee in priceset is selected in Event?
ThreadText: # How to have form not require billing address if zero fee in priceset is selected in Event?
  
  (Asked by: username_0 on 2018-06-04)
  
  Using CiviEvent, I have an event with a priceset that includes various prices, but also a zero fee option. The billing block information should not be required if zero fee is selected, but I can't get it to work.
  
  I am open to ideas for workarounds. I am not able to upgrade the CiviCRM version at this point.
  
  On the web event registration form, before clicking continue:
  
  * If a non-zero fee is selected, the billing block correctly appears
    and shows as required to fill in if Paypal not selected.
  * If the zero fee is selected, the billing block correctly does not appear.
  
  BUT
  
  When the user clicks the continue button after selecting the zero-fee option, an Error message comes up about fields in the billing bock being required. This is despite the billing block not being shown to the user (correctly as there should not be shown when zero fee).
  
  For the first-time click, it also includes billing firstname/lastname, which I would expect to be taken from the Individual firstname/lastname that were filled in
  
  If I click the continue a second time, it no longer mentions billing firstname/lastname, but it still shows some billing block fields as being required.
  
  Billing First Name is a required field.
  Billing Last Name is a required field.
  Street Address is a required field.
  City is a required field.
  State/Province is a required field.
  Postal Code is a required field.
  Country is a required field.
  
  The second time:
  
  Street Address is a required field.
  City is a required field.
  State/Province is a required field.
  Postal Code is a required field.
  Country is a required field.
  
  I have version 4.6 so it might the bug below, but I am not sure.
  [Zero fee for a paid event](https://civicrm.stackexchange.com/questions/24741/zero-fee-for-a-paid-event)
  
  thanks,
  Michele
  
  **Tags:** civievent, forms, price-sets
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_0 on 2018-08-13. Score: 0 | Accepted answer
  
  It was definitely the known bug.
  I upgraded to 4.6.38 and no longer have the problem.
  
  
  ---
  
  ### Answer by username_1 on 2018-06-04. Score: 2
  
  Sounds like <https://issues.civicrm.org/jira/browse/CRM-16929>.
  You might need to apply the 3 patch that were submitted to this issue -
  
  * <https://github.com/civicrm/civicrm-core/pull/7191>
  * <https://github.com/civicrm/civicrm-core/pull/7286>
  * <https://github.com/civicrm/civicrm-core/pull/7289>
  
  The first two are pretty longer patch so not sure if they will be applied directly. Recommendation is to upgrade CiviCRM to the latest version.
  
  
  ---
  
  ### Answer by username_2 on 2018-06-05. Score: 0
  
  One way to do it is to write [`hook_civicrm_buildForm`](https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_buildForm/) and use form id as a trigger in if condition and use jQuery to remove/disable billing section when specific option is selected.
  
  
  ---
  
  