# Adding a survey

{% hint style="success" %}
**NEW!** [**Advanced Survey Features**](#advanced-surveys-features)
{% endhint %}

## Create a survey for use in FieldEdge <a href="#summary" id="summary"></a>

* FieldEdge accesses the surveys from your NationBuilder account and makes them available within the app
* New surveys are setup via your NationBuilder Control Panel
* Surveys must be attached to a Page on your website that has a “Published” or “Unlisted” status
* Results are sent back to your nation in real time as if the person had completed the surveys via your nation’s website

In this video you will learn how to:

* Setup a new Survey in NationBuilder
* Connect a Survey to an *unlisted* Survey Page
* Check survey results

{% embed url="<https://www.loom.com/share/2d86b011bbad46bfa43337e23cace5f3>" %}

{% hint style="warning" %}
**Having trouble seeing your survey?** If some or all of your users are not seeing the survey you setup, see our article [Surveys not showing up in FieldEdge](https://guides.fieldedgeapp.com/everything-else/other-guides/surveys-not-showing-up-in-fieldedge)&#x20;
{% endhint %}

**Also see:**

* [**NationBuilder's article**](https://support.nationbuilder.com/en/articles/2306373-create-a-survey) **on how to create a survey and attach it to a page**
* **Our article on** [**Viewing survey results**](https://guides.fieldedgeapp.com/guide-to-canvassing-and-calls/reporting/viewing-survey-results)<br>

***

## Advanced Surveys Features

FieldEdge enhances NationBuilder’s survey capabilities with features designed specifically for canvassing and phone outreach. These advanced tools help teams collect more structured, complete, and actionable data in the field.

Our advanced survey features add the following features:

* **Extended Field Types** – Support for multi-select answers, formatted contact fields, and scripted text makes it easier to gather detailed, high-quality responses.
* **Required Fields** – Make questions required, helping ensure key information is captured consistently.
* **Native Contact Fields** – Sync survey questions directly to NationBuilder contact fields like name, phone, and email, keeping profiles up to date automatically.

{% hint style="info" %}
**Warning, this gets a little techie:** It's important to know that these powerful features are enabled by workarounds to NationBuilder's default survey behaviour and so some advanced setup is required. All of these advanced features are enabled by adding special "codes" inside the "question slug" and "full question" of the relevant survey question in NationBuilder.
{% endhint %}

<div><figure><img src="https://3317596624-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fmd1HR6LZFUYuK3fPHLXC%2Fuploads%2FHvPvkKonN3dXd2mMnIGX%2F5.PNG?alt=media&#x26;token=0dff7d24-b335-4ec5-8b54-6345a1964c1e" alt=""><figcaption></figcaption></figure> <figure><img src="https://3317596624-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fmd1HR6LZFUYuK3fPHLXC%2Fuploads%2FsIG3h6hI67Cy94WpebiE%2F4.PNG?alt=media&#x26;token=ce89ecf4-a777-4603-9a57-047b2e3b847d" alt=""><figcaption></figcaption></figure> <figure><img src="https://3317596624-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fmd1HR6LZFUYuK3fPHLXC%2Fuploads%2F5Y0xR4Q5QwXNL5jKMSrF%2F1.jpeg?alt=media&#x26;token=cdb00e2d-c56c-4761-9567-40e508100900" alt=""><figcaption></figcaption></figure> <figure><img src="https://3317596624-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fmd1HR6LZFUYuK3fPHLXC%2Fuploads%2FYbuJhDomkmJf52I0XNsj%2F6.PNG?alt=media&#x26;token=9413286b-3e74-44e1-984d-6feb3775738e" alt=""><figcaption></figcaption></figure> <figure><img src="https://3317596624-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fmd1HR6LZFUYuK3fPHLXC%2Fuploads%2FboS00pKvfh4jRji4gROm%2F3.PNG?alt=media&#x26;token=d2af3ee6-041f-4ffb-90ca-48fea1d12ad1" alt=""><figcaption></figcaption></figure> <figure><img src="https://3317596624-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fmd1HR6LZFUYuK3fPHLXC%2Fuploads%2FAFz0kxoaxinMpzgJ5WTC%2F2.PNG?alt=media&#x26;token=d8a345f1-e0db-40d3-b3df-638d3014c75f" alt=""><figcaption></figcaption></figure></div>

<figure><img src="https://3317596624-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fmd1HR6LZFUYuK3fPHLXC%2Fuploads%2FZi6I5Wg5f1YImEvo8q42%2FCleanShot%202024-10-11%20at%2016.07.37%402x.png?alt=media&#x26;token=0052a5e2-f924-4d36-8b77-498e6ee368c0" alt=""><figcaption><p>Example of how to add a prefix to the question slug. Be sure to include the underscore.</p></figcaption></figure>

### **New Advanced Field Types**

The table below outlines the new field types enabled by FieldEdge's Advanced Surveys. By adding a "prefix" to the slug of the question in NB, you can enable features like multi-select and script.

{% hint style="info" %}
**NB Question Format** = the format that the question in NationBuilder should be set to

**Question Slug Prefix** = the special text that needs to be included in at the start of the question slug
{% endhint %}

<table data-card-size="large" data-view="cards"><thead><tr><th>Name</th><th>NB Question Format</th><th>Question Slug Prefix</th><th>Description</th></tr></thead><tbody><tr><td><strong>Multiselect</strong><br></td><td>multiple_choice<br></td><td><code>multiselect_</code><br></td><td><p>Displays as a list of single select choices and allows a user to select more than one answer.</p><p></p><p><mark style="background-color:red;"><strong>🚨 Important Limitation:</strong></mark> when exporting the survey results through NationBuilder, only a single answer will be exported.<br><br><strong>How it looks in FieldEdge:</strong><br><br><img src="https://3317596624-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fmd1HR6LZFUYuK3fPHLXC%2Fuploads%2FCjUolc32nepgZ3shpkTy%2Fimage.png?alt=media&#x26;token=0c015af9-d435-438e-b6ff-ad3341428c0c" alt="" data-size="original"></p></td></tr><tr><td><strong>Script</strong><br></td><td>text<br></td><td><code>script_</code><br></td><td><p>Add a paragraph of text. Useful for creating talking points or explaining different sections of the survey, providing instructions.</p><p></p><p><strong>How it looks in FieldEdge:</strong><br><br><img src="https://3317596624-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fmd1HR6LZFUYuK3fPHLXC%2Fuploads%2FywnGXKQGRi7V86mnsyjJ%2Fimage.png?alt=media&#x26;token=781e259e-80dc-4591-8efd-4c8b3856467e" alt=""></p></td></tr><tr><td><strong>Email Address</strong><br></td><td>text<br></td><td><code>email_</code><br></td><td>Formats as an email address validated text field.<br><br>Note: If you want this data to sync to the field in the person's profile, use the Native Field feature (more detail below).<br><br><strong>How it looks in FieldEdge:</strong><br><br><img src="https://3317596624-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fmd1HR6LZFUYuK3fPHLXC%2Fuploads%2FC6TPIc8uyEJkuv4MkFXK%2Fimage.png?alt=media&#x26;token=51656dcb-35db-4a5f-a1b6-8168cd7288b7" alt=""></td></tr><tr><td><strong>Phone</strong><br></td><td>text<br></td><td><code>phone_</code><br></td><td>Formats as a validated phone field. People shouldn’t have to type in the country code.<br><br>Note: If you want this data to sync to the field in the person's profile, use the Native Field feature (more detail below).<br><br><strong>How it looks in FieldEdge:</strong><br><br><img src="https://3317596624-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fmd1HR6LZFUYuK3fPHLXC%2Fuploads%2FFEsQ7WKvOVHtw53u4J5n%2Fimage.png?alt=media&#x26;token=027739ff-c0df-4d0a-9c1f-7f2ce7d27541" alt=""></td></tr></tbody></table>

### **Make a Field Required**

By default, all questions are optional. If you would like to make a question required, add `_r` to the end of the question slug eg. `multiselect_q1_r`

<figure><img src="https://3317596624-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fmd1HR6LZFUYuK3fPHLXC%2Fuploads%2F7LjC2X6jTMjAoHDOxOOD%2FCleanShot%202024-10-11%20at%2016.04.04%402x.png?alt=media&#x26;token=c2a1b60f-7ddf-40c1-bca5-b3721df11d10" alt=""><figcaption></figcaption></figure>

### **Native Contact Fields**

#### **Case Case 1: Add a native contact field as a survey question**

In some cases, you may want to collect information during a survey that builds a person's profile in NationBuilder. With FieldEdge, you can add a "NationBuilder native" profile field to your survey. For example, you could collect someones email and have it be automatically added to their profile.

To do so, add a survey question with the type “text” and the prefix `native_` prefix (ie. at the beginning of the slug), followed the slug of the field you want to add.

#### **Case Case 2: Dynamically inject native contact fields in a survey question**

You may want to dynamically inject details about a contact into a survey question. For example: "Is your name Abram Phelps"? You can do so by adding the&#x20;

**We support the following NationBuilder contact fields:**

<table><thead><tr><th width="175">NB Field</th><th width="268">As a survey question</th><th>Inject into survey question</th></tr></thead><tbody><tr><td><em><strong>Description</strong></em></td><td><em><strong>Add to start of question 'Slug'</strong></em></td><td><em><strong>Add anywhere in 'Full question'</strong></em></td></tr><tr><td>Email address</td><td><code>native_email_</code></td><td><code>native_email</code></td></tr><tr><td>Mobile number</td><td><code>native_mobile_</code></td><td><code>native_mobile</code></td></tr><tr><td>Opt-in to text</td><td><code>native_mobile_opt_in_</code></td><td><code>n/a</code></td></tr><tr><td>Home phone no.</td><td><code>native_phone_</code></td><td><code>native_phone</code></td></tr><tr><td>Work phone no.</td><td><code>native_work_phone_</code></td><td><code>native_work_phone_number</code></td></tr><tr><td>Employer</td><td><code>native_employer_</code></td><td><code>native_employer_</code></td></tr><tr><td>Volunteer</td><td><code>native_is_volunteer_</code></td><td><code>n/a</code></td></tr><tr><td>First Name</td><td><code>native_first_name_</code></td><td><code>native_first_name</code></td></tr><tr><td>First Name</td><td><code>native_last_name_</code></td><td><code>native_last_name</code></td></tr></tbody></table>

{% hint style="danger" %}
**Important Notes:**

* Native field in *answers* are disabled when canvassing more than one person at a time (via Canvass Household option) and the user will need to skip them, while in the *questions* field, it will show the details from the first person selected.
* When creating a native fields question, ensure you include a trailing underscore, eg. `native_last_name_`
* Fields will not be automatically updated in FieldEdge until after you reload. For example, if update a person's name via a survey while on a walk, it will show their old name on the profile until you restart the walk, open up their full profile, start a new call time session, etc.
  {% endhint %}

{% hint style="warning" %}
**Having trouble with advanced fields display correctly?**\
If you find your field is not displaying correctly, ensure you have an underscore after the prefix, for example:\
\
native\_email will not work, it should be **native\_email\_**&#x78;xxx

script will not work, it should be **script\_**&#x78;xxxx
{% endhint %}

## Automated Actions

NationBuilder survey's offer an incredibly sophisticated and power feature that enables specific actions to be triggered via a survey response. Most actions can be set at the survey level, the question level and the specific answer level. These can be setup via **Survey's page Survey setting -> Basic tab**.

### Auto-tagging

One of the most useful survey actions is auto-tagging. When integrated with FieldEdge, it allows for granular segmentation based on survey responses. For instance, during canvassing activities, you can use tags to categorize voters based on their interests, their likelihood to support a campaign, or other criteria relevant to your strategy.

### Add to Path

Set a Path, the Step and other path options. Ensure the person is guided on their journey to become a voter, member, donor, volunteer or any other desired path.

### Enroll in Automation

Add them to an existing email automation workflow. Great for following-up post canvass.

### Assign Point Person

Assign a point person (if not already assigned). Ensure each and every person is taken care of by the correct person in your campaign or organization.

### Assign Membership

Assign a membership along with an expiry date. Get creative by assigning Memberships as a way to group people.
