# Configuring Schedules and Notifications

You can configure a survey schedule and survey notifications for each survey in your study. Both schedules and notifications are configured within a survey's Schedule and Notification JSON.

## Overview
* Schedules
  * Every survey in your collection must have at least one associated schedule.
  * Schedules designate when a survey is available to respondents.
  * Events are used in schedules to designate when the schedule starts. The schedule can start before, on, or after the events.
    * Events can also be used to designate when the schedule ends.
  * Groups are used in schedules to designate which subset of participants should receive this schedule.
  * Schedules can be configured to start before, on, or after an event.
  * Schedules can make surveys available for a specific period of time, at a specific time of day, or as many times as needed.
  * When site users enter a date and time for a Participant Event, that triggers schedules which start from the event.
* Notifications
  * Notifications are optional.
  * Notifications are reminders or alerts sent to participants, caregivers, and/or sites. For example, you can configure a schedule to send a notification to remind a participant or caregiver that a survey is available for them to complete or to inform sites when a participant or caregiver has missed the survey. 
  * The system may buffer email notifications sent to participants and caregivers for up to two minutes. This allows the system to send multiple notifications in a single digest email. The system also sends specific email notifications to site users in a digest format based on the site user's preferences.
  * Participants and caregivers receive notifications in the MyVeeva for Patients app and via email, when applicable.
  * Site users receive notifications via email.
  * To add a notification, you must choose from the list of supported standard notification templates. 


## Configuring a Schedule and/or Notification
To configure a schedule and/or a notification for a survey, complete the following steps:

1. Navigate to a collection.
2. Select the Surveys tab.
3. Select the **Edit Survey** icon <img class="inline" src="https://platform.veevavault.help/assets/images/23r2_ePRO_edit_button.png" alt="Edit Survey icon" style=" width: 1.5rem;" /> associated with the survey that you want to edit the schedule for.
4. On the Edit Survey page, use the Schedule Configuration field to configure your survey's schedules and notifications using JSON.
  * To reference events in schedules, access the Tools menu <img class="inline" src="https://platform.veevavault.help/assets/images/24r3_eCOA_snippets_menu.png" alt="Tools menu icon" style="" />, select **Event Names** to view the events in this collection and select the event label to copy the name. You can paste it where you want to add it in the schedule.
  * To reference groups in schedules, access the Tools menu <img class="inline" src="https://platform.veevavault.help/assets/images/24r3_eCOA_snippets_menu.png" alt="Tools menu icon" style="" />, select **Group Names** to view the groups in this collection, and select the group label to copy the name. You can paste it where you want to add it in the schedule. 
5. Select **Save**.

## Configuring a Schedule Using JSON Snippets

To make it easier to build the draft of the survey or schedule, you can copy preexisting code snippets and then paste them where you want to add them in the JSON editor. For example, you can copy the code for an entire survey, or you can select only a block or question attribute.

<div class="note-border alert-info">
  <div class="alert alert-info" role="alert">
    <div><i class="far fa-info-circle"></i></div>
    <div class="alert-text">
      <p><strong>Note</strong>: You may still have to modify the parts of snippets after you paste them into the applicable JSON Editor.</p>
    </div>
  </div>
</div>

 

You can access the snippets from the Tools menu <img class="inline" src="https://platform.veevavault.help/assets/images/24r3_eCOA_snippets_menu.png" alt="Tools menu icon" style="" /> while you are creating or editing a survey. 

To work with a snippet, select the type of code snippet you want to use, and complete one of the following actions:

1. **Copy Snippet:** If you know which snippet you want to use without viewing additional information, select the **Copy Snippet** icon <img class="inline" src="https://platform.veevavault.help/assets/images/24R3_eCOA_Snippet_Copy_Icon.png" alt="Copy Snippet icon" style="" /> to immediately copy the snippet, and then paste it in the applicable JSON editor panel.
2. **View Snippet:** Select the snippet you want to view. The snippet and a short description of it are displayed. You can select the back arrow <i class="fas fa-arrow-left" style="color: #272a30;"></i> to go back to the various list levels, or you can use the Copy Snippet information above. 

## Related Resources
<a href="/en/lr/912971/">Understanding Schedule and Notification Parameters</a>