Answers.Body: <p>Don't think there is a setting in the UI to do this. The event is basically added to the input widget using the <code>getlist</code> api of <code>Event</code> entity. Adding the following param to the same should be able to list only upcoming events in the input field.</p>
  
  <pre><code>'params' =&gt; array('start_date' =&gt; array('&gt;' =&gt; "now")),
  </code></pre>
  
  <p>You should be able to do this via an extension. Or if you want to see the param buildup in core, it is present in <a href="https://github.com/civicrm/civicrm-core/blob/master/CRM/Event/Form/Participant.php#L641" rel="nofollow noreferrer">Event/Form/Participant.php</a></p>
  
  <p>Extending the above array to include our param should remove the past events.</p>
  
  <pre><code>$eventFieldParams['api']['params']['start_date'] = array('&gt;' =&gt; "now");
  </code></pre>
  
  <p>Note that changes made to core would be lost after an upgrade, so it is better to override this file in an extension OR see if any hook can help you in attaining this.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-22T12:12:14.847Z
Answers.Text: It works. Thank you. For now I added this in Participant.php. Later will do the same via extension or hook. Thanks again.
Answers.UserDisplayName: Manigandan
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-22T11:56:05.943Z
Answers.LastActivityDate: 2018-02-22T11:56:05.943Z
Answers.UserDisplayName: jitendra - fuzion
Answers.Body: <p>You can set the Event Is_active Flag to FALSE - you can find this in Event Configure Page</p>
  
  <p>Is this Event Active?  </p>
  
  <p>So, the list will ignore any in-active event Events.</p>
  
  <p>I guess this helps!!!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-22T12:02:01.347Z
Answers.LastActivityDate: 2018-02-22T12:02:01.347Z
Answers.UserDisplayName: Ramesh - ARTECH Consultancy
Body: <p>In the New Event Registration page, Event field gets all the events from very beginning. How can I configure to display only the upcoming events.</p>
  
  <p><a href="https://i.sstatic.net/qhTpc.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/qhTpc.png" alt="Registration Screen"></a></p>
  
Tags: <civievent><drupal><registration>
Title: How to get rid of past events in the Event field lising (Select Box) on New Event Registration page Page
ThreadText: # How to get rid of past events in the Event field lising (Select Box) on New Event Registration page Page
  
  (Asked by: username_0 on 2018-02-22)
  
  In the New Event Registration page, Event field gets all the events from very beginning. How can I configure to display only the upcoming events.
  
  [![Registration Screen](https://i.sstatic.net/qhTpc.png)](https://i.sstatic.net/qhTpc.png)
  
  **Tags:** civievent, drupal, registration
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2018-02-22. Score: 1 | Accepted answer
  
  Don't think there is a setting in the UI to do this. The event is basically added to the input widget using the `getlist` api of `Event` entity. Adding the following param to the same should be able to list only upcoming events in the input field.
  
  ```
  'params' => array('start_date' => array('>' => "now")),
  
  ```
  
  You should be able to do this via an extension. Or if you want to see the param buildup in core, it is present in [Event/Form/Participant.php](https://github.com/civicrm/civicrm-core/blob/master/CRM/Event/Form/Participant.php#L641)
  
  Extending the above array to include our param should remove the past events.
  
  ```
  $eventFieldParams['api']['params']['start_date'] = array('>' => "now");
  
  ```
  
  Note that changes made to core would be lost after an upgrade, so it is better to override this file in an extension OR see if any hook can help you in attaining this.
  
  > **Comments:**
  > **username_0**: It works. Thank you. For now I added this in Participant.php. Later will do the same via extension or hook. Thanks again.  
  
  ---
  
  ### Answer by username_2 on 2018-02-22. Score: 0
  
  You can set the Event Is\_active Flag to FALSE - you can find this in Event Configure Page
  
  Is this Event Active?
  
  So, the list will ignore any in-active event Events.
  
  I guess this helps!!!
  
  
  ---
  
  