---
description: >-
  It refers to the process of generating different response based on the options
  selected by the respondents. This approach allows for a more personalized and
  efficient experience for respondents.
---

# Dynamic response based on respondent selections

{% hint style="success" %}
**Why you need this**

* Save time by streamlining processes and reduce errors. Form admins no longer have to spend time cleaning and arranging responses, as this process can be automated.
{% endhint %}

As there are many different types of forms that may require such automation, we will focus solely on demonstrating the use of the dropdown field from FormSG. To follow this guide, make sure that your dropdown field contains at least two options.

## Send unique response to respondents based on the options they've selected.

{% tabs %}
{% tab title="Step 1. Trigger: FormSG" %}
## Connect the form you wish to automate with

{% hint style="success" %}
In this example, the demonstration will utilize the dropdown field in FormSG. To follow this guide, ensure that your dropdown field contains these options. \


1. Resetting device
2. Damaged device
3. Lost device
4. New device
{% endhint %}

1. After logging into Plumber.gov.sg
2. Click "Template" on the left or "Use a template" on the homepage
3. Click "Route support enquiries"
4. Click "Use template" on the top right
5. Click "New form response"
6. Click "Connect" at the right
7. Under "Choose connection", click the dropdown
8. Click "+ Add new form"
9. Under "Form URL", paste the form link that you wish to connect to
10. Under "Form Secret Key", paste the form's secret key
11. Click "Connect"
12. A message "Your form is connected successfully." will be shown
13. Click "Save and continue"
14. Under "1. New form response", a green dot will appear as an indication that the form has been connected successfully.

<figure><img src="https://2212031742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXyVsBiX9OwOL1o9g5hLM%2Fuploads%2F7Fk8SvCAMqZUlEbC3yLN%2Fimage.png?alt=media&#x26;token=7608eae3-4179-4db4-b737-c19549aea96e" alt=""><figcaption></figcaption></figure>

15. Click "Check step"
{% endtab %}

{% tab title="Step 2: If-then" %}
1. Click "2. Condition". A side drawer will appear
2. You will see "Replace with response 1 request"&#x20;

<figure><img src="https://2212031742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXyVsBiX9OwOL1o9g5hLM%2Fuploads%2Fabpv5ONTiTtmwkqPhvx2%2Fimage.png?alt=media&#x26;token=738b98dc-f971-4840-a973-0175b0ad7215" alt=""><figcaption></figcaption></figure>

3. Delete that variable
4. Click on the field, a drop down will appear
5. Select the response that correspond with the **drop-down option's response**&#x20;
6. Click "Check step"&#x20;
7. **The step would either passed or fail, it doesn't matter at this point**
8. Click "3. Send email"
9. Delete "Replace this with data from step 1" for all of the fields

<figure><img src="https://2212031742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXyVsBiX9OwOL1o9g5hLM%2Fuploads%2FbVaFcnXAT9ptvB7B5AG6%2Fimage.png?alt=media&#x26;token=25953641-f56f-4264-9f0b-6e3c0646dcbc" alt=""><figcaption></figcaption></figure>

10. Replace with the variable you would like&#x20;
11. Click "Check step" once you are done
12. You should receive an email to your inbox
13. Repeat step 1 to step 12&#x20;
{% endtab %}
{% endtabs %}















