Answers.Body: <p>I have done something similar using a custom template (.extra) and some jQuery. Here is how it worked:</p>
  
  <ul>
  <li>Created a custom field which is the trigger, in our case "are you a member"</li>
  <li>Setup a price field in a price set that has line items for the regular pricing and the discount pricing.</li>
  <li>Use jQuery to hide the price set initially. </li>
  <li>When user selects an option in the custom field it triggers the jQuery which shows the price set and the rows of the price field that are appropriate to the selection. So in our case if they select that they are a member it shows only member pricing if the select that they are not a member it shows only non member pricing. </li>
  </ul>
  
  <p>This scenarios was created for an organization that didn't want to have members login to get the member discount so this put them on the honor system. We have used this method with various similar scenarios. </p>
  
  <p>Hope this helps.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-25T17:35:48.740Z
Answers.Text: Thank you! This sounds like just what I need.....now to figure out the details. :)
Answers.UserDisplayName: kzburn
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-24T13:54:09.837Z
Answers.LastActivityDate: 2018-08-24T13:54:09.837Z
Answers.UserDisplayName: KilakwaBT
Answers.Body: <p>Don't think this is possible with some custom code addition in an extension.</p>
  
  <p>You might try adding two similar events with read-only checkboxes -</p>
  
  <ul>
  <li>On one event, this checkbox will be enabled by default. Add discount to this event page only.</li>
  <li>Second event will have this checkbox disabled by default. No discount added to this page. </li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-24T08:28:11.617Z
Answers.LastActivityDate: 2018-08-24T08:28:11.617Z
Answers.UserDisplayName: jitendra - fuzion
Body: <p>I need to use a discount that is activated when the person registering for an event checks a box on the registration form. How do I connect the checkbox on the form with the discount? </p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-08-24T08:11:15.050Z
Comments.Text: Are you meaning the standard Civi event registration forms, or some other form?
Comments.UserDisplayName: Aidan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-08-24T13:11:06.750Z
Comments.Text: A standard Civi event registration form.
Comments.UserDisplayName: kzburn
Tags: <civievent><cividiscount>
Title: Civi Event discount
ThreadText: # Civi Event discount
  
  (Asked by: username_0 on 2018-08-23)
  
  I need to use a discount that is activated when the person registering for an event checks a box on the registration form. How do I connect the checkbox on the form with the discount?
  
  **Tags:** civievent, cividiscount
  
  > **Comments:**
  > **username_1**: Are you meaning the standard Civi event registration forms, or some other form?  
  > **username_0**: A standard Civi event registration form.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2018-08-24. Score: 1
  
  I have done something similar using a custom template (.extra) and some jQuery. Here is how it worked:
  
  * Created a custom field which is the trigger, in our case "are you a member"
  * Setup a price field in a price set that has line items for the regular pricing and the discount pricing.
  * Use jQuery to hide the price set initially.
  * When user selects an option in the custom field it triggers the jQuery which shows the price set and the rows of the price field that are appropriate to the selection. So in our case if they select that they are a member it shows only member pricing if the select that they are not a member it shows only non member pricing.
  
  This scenarios was created for an organization that didn't want to have members login to get the member discount so this put them on the honor system. We have used this method with various similar scenarios.
  
  Hope this helps.
  
  > **Comments:**
  > **username_0**: Thank you! This sounds like just what I need.....now to figure out the details. :)  
  
  ---
  
  ### Answer by username_3 on 2018-08-24. Score: 0
  
  Don't think this is possible with some custom code addition in an extension.
  
  You might try adding two similar events with read-only checkboxes -
  
  * On one event, this checkbox will be enabled by default. Add discount to this event page only.
  * Second event will have this checkbox disabled by default. No discount added to this page.
  
  
  ---
  
  