We recommend checking the Veeva Library or your customer library to use an existing survey before you configure a new one. If you want to create a survey that isn’t already in a library, you can configure it using the JSON editor in Veeva eCOA Studio. The JSON editor uses line-by-line error messages to guide you in configuring the survey.

Configuring a Survey Using the JSON Editor

To create a new survey using the JSON editor, complete the following steps:

  1. Access a collection.
  2. Select Edit.
  3. In the Surveys tab, select Add Surveys.
  4. From the drop-down menu, select Create New Survey.
  5. When the Create New Survey page opens, use the Survey panel to configure your survey using JSON. See the Configuring a Survey Using JSON Snippets section below for more information.
  6. You can select the Preview Survey icon (Preview Survey icon) to preview your survey while you create it. See Previewing a Survey for more information.
  7. Add information for the following fields next to the JSON editor.
    • Details
      • Display Label: This text is the label that respondents see when they receive the survey.
      • As-Needed Display Label: This field is only available when you add an as-needed schedule to the survey. As-needed surveys may be completed as many times as needed when they are available. The As-Needed Display Name can be configured to indicate a repetitive task such as “Log Exercise” or “Log Food Intake”. You are required to specify an As-Needed Display Label if one or more schedules for this survey has an available type of “asNeeded”. See Configuration Parameters for Schedules for more information.
      • Name: This is the reference name that you use when referring to the survey in the other areas of the collection, such as in rules.
    • Access
      • Restrict Data: Select Yes if you want to restrict the data for the survey and prevent site staff and internal users from being able to see the data from this survey, or No if all users should be able to see data from this survey. By default, surveys are not restricted.
      • Respondent: This field is only available if you are creating an ePRO survey, which is defined in the Survey JSON. Select Participant or Caregiver, to indicate who should receive and respond to the survey. You can’t change the respondent after the collection is approved.
      • Respondent Burden: Select a value to represent the burden of the survey. The respondent burden is the perceived difficulty of the survey for respondents to complete. Options include Very Easy, Easy, Moderate, Hard, and Very Hard.
      • Sequence: The survey sequence represents the order in which surveys are required to be completed. For example, when a respondent receives surveys with the sequence values 1 and 2, they must complete the survey with a sequence value of 1 before the survey with a sequence value of 2. This field is only available when you include schedules that do not include an as-needed schedule to the survey. Additionally, the following parameters apply to survey sequence:
        • You can apply the same sequence value to multiple surveys.
        • The sequence value must be greater than 0 and less than or equal to 1000. You can enter up to four decimal places.
        • You can leave the field empty if the survey doesn’t have to be completed in a certain order.
    • Additional Information
      • Add to Library: This selection indicates whether the survey will be added to your customer library as a reusable survey. Select Yes or No.
        • Selecting Yes adds the survey to your customer library for future reuse once this collection is approved.
        • Selecting No won’t add the survey to your customer library.
        • This field is only available when creating a survey. After a survey is created, you cannot change the selection.
      • Reviewed: Select Yes, No, or N/A. See Tracking Reviewed Surveys for more information.
      • Licensed: Select Yes, No, or N/A. See Tracking Licensed Surveys for more information.
  8. Select Save.

Studio JSON Resources

See the following resources for more information on the JSON:

Configuring a Survey 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 panel. Varying amounts of code can be copied based on what you select. For example, you can copy the code for an entire survey, or you can select only a block or question attribute.

You can access the snippets from the Tools menu Tools menu icon while you are creating or editing the 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 Copy Snippet icon 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 to go back to the various list levels, or you can use the Copy Snippet information above.

Uploading Images to Surveys

You can upload .JPG, .PNG, or .GIF images to display in a survey. Images you upload are saved to the survey’s image library. Survey images adapt to the size of a respondent’s device. Images can be used in the following contexts:

  • Above license text
  • Above question or instruction heading text
  • Above numeric rating scales
  • As answers to single- or multiple-choice questions

To upload an image, complete the following steps:

  1. When creating or editing a survey, access the snippets from the Tools menu Tools menu icon and select Images.
  2. Drag-and-drop an image or select Browse to select a file from your computer. For optimal display, we recommend that images in these contexts have the following dimensions (in pixels):
    • License Images: At least 90px height
    • Heading Images: At least 600px height
    • Numeric Rating Scale Images: At least 2350px width
    • Answer Images with Answer Text: At least 300px height
    • Answer Images without Answer Text: At least 450px height
  3. Select Upload.
  4. In the Image Library tab, select the Copy URL icon Copy Snippet icon beneath the image. The image’s unique URL is copied to your clipboard, and you can paste it into the survey JSON configuration. For more context about where images can be displayed, see the following sections:

Configuring Survey Conditions

Conditions show or hide controlled questions based on the response provided to one or more controlling questions. See Configuring Conditions for more information.

Configuring Scores

Survey scoring is configured within the survey JSON. See Configuring Scores for more information.

Questions of the following types can be used in scoring calculations:

  • Single Choice
  • Multiple Choice (all selected values will be added up)
  • Number Entry (with a single entry)
  • Numeric Rating Scale
  • Visual Analog Scale

Supported HTML Tags

You can only use anchor links in license text and block headings, but all other HTML tags can be used in the following locations:

  • License Text
  • Block Headings
  • Single Choice Answers
  • Multiple Choice Answers
  • Optional Answers
  • VAS Minimum Label
  • VAS Maximum Label
Description Example HTML Tags Example Output
Bold
<strong>This text is displayed in bold</strong>
This text is displayed in bold
Italic
<em>This text is displayed in italics</em>
This text is displayed in italics
Underlined
<u>This text is displayed as underlined</u>
This text is displayed as underlined
Paragraphs
<p>Paragraph 1</p>
<p>Paragraph 2</p>

Paragraph 1

Paragraph 2

Line Breaks
Line 1<br>Line 2
Line 1
Line 2
Anchor Link
<a href="https://www.veeva.com/">Veeva website</a>

Configuring Tables

To create a new table in a survey, complete the following steps:

  1. Set the following universal section parameters:
    1. Add a new section, and set the section type to Table.
    2. In the table section, add the tableColumns object. You can configure up to 6 columns in a table.
    3. To keep the table heading on screen while scrolling, add the optional stickyTableHeading parameter.
    4. To set a section-level condition that determines whether a section is displayed, add the condition parameter.
  2. Set the following universal survey block parameters:
    1. Add the position parameter for each block in a table section. This position is specified using a standard spreadsheet-style grid reference, for example, A1 or A1: B2. Blocks can span multiple rows or columns.
    2. To set a block-level condition that determines whether a block is displayed, add the condition parameter. Unlike blocks within serial sections, these are displayed as read-only until the condition is met. When all blocks in a row are conditional and the condition is not met, the row is not displayed at all.
  1. Add any headings that you want the site user to see in text blocks. You can add images in the headings.
  2. Add other blocks to define the contents of the table, and ensure that you include any text elements that you want the user to see, such as labels and placeholders. Also ensure that you also add all other headings for the blocks, because they are displayed in reporting.

Previewing a Survey

To preview a survey from the respondent’s perspective, find the survey you want to preview and select the Preview Survey icon (Preview Survey icon). When editing a survey, the action is only available if all the JSON code is valid.

To preview a survey in a different language (if translations have been uploaded), select the language from the Language drop-down menu.

To see how the survey is displayed on different devices, use the Preview Size menu to select a predetermined device size, enter the width and height for a custom device size, or rotate the preview device with the Rotate icon (Rotate icon) in the Preview Size Settings.

To reset the survey to it’s original state while completing surveys in the preview, select the Reset button at any time. After submitting the survey, you will view a read-only version of the completed survey as a site staff member would see it. Any configured scores are displayed at the top of the survey. Select the Edit button to change the responses and re-submit the survey. Viewing the scores of survey submissions with various responses can help you validate scoring configuration.

Additional Resouces: