This worksheet explains how to insert participants’ names and addresses to the first page of a questionnaire or covering letter that can then be printed for mailing.
This worksheet example adds variables representing the names and addresses to a copy of the Crocodile Rock Cafe survey supplied with Snap. It then uses a database link to populate the survey with the participants’ details.
You will need to have a database set up in advance containing the names and addresses of participants. It is important that each address line must be in a different field.
Due to the fact that Snap’s standard questions styles do not resemble a typical address format, this worksheet also includes instructions on how to modify styles to take on the appearance of an address.
Finally, the worksheet describes how to include the participants’ details on the questionnaire when it is printed. Once the participants have completed and returned the questionnaire, their relevant details can then be keyed into Snap. Subsequently, cases can be matched with records from the external database for the import of other personal information.
Summary of steps
- Step 1: Adding the name variable to your survey
- Step 2: Creating the address line style
- Step 3: Adding the address variables to your survey
- Step 4: Importing the respondent information
- Step 5: Previewing and printing your survey
- Open the survey in Design mode and create a new question below the subtitle. Either press [Enter] to insert the question after the current one or click to insert the question before the current one.
- Select the Open Ended style from the Style Selection Box on the toolbar.
- Type “Name:” in the area marked “Click here for text”. (This is only used for reference while creating the style.)
- Click the Variable Properties button . The Variable Properties dialogue opens. Change the question Name property to “Name” and click [OK].
- The word “Name” now appears in place of the question number.
Because the name and address variables are to be loaded from a database, and need to be placed in a specific position on the page, you cannot use any of the default styles. Instead, you must create a new style for them. This style will produce an empty response box at the left side of the page.
- Select the Name question you have just created.
- Move the code box to the right of the question by selecting Positions in the toolbar topic list. Set the question Position to Beside.
- Select Columns from the drop-down list and set it to Full Page. Set the number of columns to 1, if it is set differently.
- Select Tabs in the toolbar topics, and then select Text in the drop-down list. Set the tab value to 0%. The space for the question text disappears, but that is fine, as it will be hidden. (The tab value sets the space reserved for text. You can move the response box to the right by increasing this value.)
- Select Alignment in the toolbar topics and then select Code Box in the drop down list. Click the left end of the alignment value box to set it to Left.
- Use [Ctrl]+[+] to expand the response box until it is large enough for your address lines.
- Select Show from the toolbar topics drop-down list and uncheck the boxes for Name and Text.
- With Show selected, select Space before in the drop-down list, and set the Gap to 0.01cm. This specifies the gap between the lines of the address. You may need to set this to 0, or hide this space completely.
- Select Margins in the toolbar topics, and then select Data in the drop-down list. Set all the margin values to 0. This specifies the space between the box and the response data.
- Click or press [Ctrl]+[M] to go to Style mode.
- Click to go to the Style Organiser. The style you have been working on will be selected in the left pane.
- Click [Properties] and type “Address line” in the Name field then click [OK]. This creates a new style called “Address line”, containing your changes.
- Click [OK] to close the Style Organiser. Click or type [Ctrl]+[M] to go back to Design mode.
- Select the Name question that you have just inserted. Look at the Style box. If your new Address line style is not selected, select it to apply it to the Name question.
- Press [Enter] to create a new question. It is automatically created in Address Line style.
- Click the Properties button and change the question Name property to “Address_1” and click [OK].
- Repeat to create variables for the maximum number of address lines stored in your database. The example shows Address_1, Address_2, Town, Post_zip_code. Note that no spaces can be used in variable names.
- Change to Style mode (press [Ctrl]+[M] or click ) and remove the boxes from the Address line style. While they make it easy to locate the variables in the questionnaire, they do not improve the look of the printed address. Select Boxes in the toolbar topics, and then select <None> in the drop-down list.
Note: box outlines not available for scanning editions.
The questionnaire now appears to have a blank area where the address variables are.
- Select File | Database Link to display the Database Linkage dialog box and click [New].
- The Database Wizard dialog is displayed. Select the Import from database option and click [Next>].
- Click [Select Database File] and browse to the file containing the respondent data. (If the file is of an
unrecognized type, you can identify it to Snap using the [Build Data Link…] button.)
- Select the table to use and click [Next>]. (If you do not wish to import details for all the participants in the file, you can set a filter here.)
- The dialog displays a list of Import/Export Options. Select Append all cases. This option imports new cases from the database and appends them to the existing cases in the database. If you already have cases in your survey, you could select a different option so identical cases were not imported.
- The next dialog allows you to map the fields in the database to the fields in the questionnaire. Select the Snap field in the right-hand column that the data will be imported into. Link up all the name and address fields. Click [Next>].
- A summary of your database link will be displayed. If you wish, you can change the name of the link to something that is immediately recognizable. Click [OK] to finish.
- You can see how the data in your survey will look if you go to Data View mode. Click on the questionnaire window toolbar, or press [Ctrl] + [Shift] + [D].
- Select Panel Data (to show the people you have just added from the database) from the dropdown list. If it is the first time you have selected Panel Data, you will be asked which panel you wish to display. In this example, there is only one panel and one database link. The selection dialog appears with this link selected.
- Click [OK] to display the questionnaire with the panel data included.
- To see how it will look when printed, select the Print preview button .
- If you are happy with your questionnaire, you can now print it. Select the All Filtered Cases radio button and click [Print].
If you need to make any changes select [Cancel] from the Print dialog.
Change to Style mode and make any adjustments needed to the Address line style. Changes you make to the style in Style mode will apply to all uses of that style. Then return to Data view mode to print.
You must print from Data View mode to include the imported panel data. If you print or publish from anywhere else, you will simply print out the empty questionnaire.
Seeding surveys from a database is a useful tool, and has been described in other worksheets, such as Identifying your respondents in a Snap WebHost survey and Snap Help Changing or editing the respondents for a live survey using a database link. There is also a step by step guide showing you how to send email invites to a customer panel in the Getting Started guide Access an online customer panel with Snap WebHost.
If there is a topic you would like a worksheet on, email to email@example.com