# Questionnaire Builder

The Questionnaire Builder is a powerful tool designed for compliance officers to create custom user surveys and integrate them into the user verification workflow. This functionality enhances the compliance process by allowing the collection of specific information tailored to the organization's needs.

* From the Sidebar Menu, click on `Questionnaire` to open the flow builder interface. The interface displays all existing questionnaires and provides options to create new ones.
* Users can search for existing questionnaires by name and manage them efficiently.

***

### Create Questionnaire

* The Create questionnaire button allows users to start building a new survey quickly:

<figure><img src="https://1111746725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3YdYFOUPi8bWAiBfJgPb%2Fuploads%2FMjJXzg7MHJ6HZJFBygvo%2FScreenshot%202024-11-14%20at%2013.11.55.png?alt=media&#x26;token=c78adc90-46bf-42fe-8137-66ff57e855ec" alt=""><figcaption></figcaption></figure>

* After clicking the Create questionnaire button, you are directed to the Questionnaire Builder interface, which consists of three main sections: Designer, Preview, and Logic:

<figure><img src="https://1111746725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3YdYFOUPi8bWAiBfJgPb%2Fuploads%2FW1AfEZ2zRHNlXWNY6nOI%2FScreenshot%202024-06-24%20at%2013.34.47.png?alt=media&#x26;token=8a6d4391-972d-4f02-8419-977971bb2602" alt=""><figcaption></figcaption></figure>

* You can click the `Add Question` button to start building their questionnaire.
* Fill in the necessary details such as the questionnaire name, and description.
* You can drag and drop various question types from the toolbox into the survey area. This includes multiple-choice, text input, date selection, and more.

<figure><img src="https://1111746725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3YdYFOUPi8bWAiBfJgPb%2Fuploads%2FHcpuYBVaiB5HXmp0lYs6%2FScreenshot%202024-06-24%20at%2013.38.51.png?alt=media&#x26;token=87fc01e8-0287-4521-8103-06f29b7f3ba9" alt=""><figcaption></figcaption></figure>

* After adding a question, users can customize it by setting the question text, adding options for multiple-choice questions, and setting validation rules (e.g., mandatory responses).&#x20;

<figure><img src="https://1111746725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3YdYFOUPi8bWAiBfJgPb%2Fuploads%2Fq5sgI4tcI2vVzvV4yQaR%2FScreenshot%202024-06-24%20at%2013.41.28.png?alt=media&#x26;token=e735af43-b42b-4d9c-b4a8-daa4f2230d9d" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1111746725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3YdYFOUPi8bWAiBfJgPb%2Fuploads%2F2TytWFUniAiphbYDxxic%2FScreenshot%202024-06-24%20at%2013.43.01.png?alt=media&#x26;token=c3cc95ea-8ee1-4d77-94cc-484ed3ddc861" alt=""><figcaption></figcaption></figure>

***

### Preview Questionnaire

* The `Preview` tab allows users not only to see how their questionnaire will appear to respondents, but also test how it works by inserting the answers. This helps in ensuring that the questions are formatted correctly and the survey flows logically.

<figure><img src="https://1111746725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3YdYFOUPi8bWAiBfJgPb%2Fuploads%2F8Jx75LoQ4R9yUT2otynt%2FScreenshot%202024-06-24%20at%2013.40.27.png?alt=media&#x26;token=9da7e739-8692-4c6a-9b2d-e71d35609858" alt=""><figcaption></figcaption></figure>

***

### Create Own Logic

* In the `Logic` tab, you can set up conditional logic to control the flow of the questionnaire based on respondents' answers. This can include showing or hiding questions based on previous responses, making certain questions mandatory, and branching the survey into different paths.
* You can click the `Add New Rule` button to start building the logic of questionnaire.

<figure><img src="https://1111746725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3YdYFOUPi8bWAiBfJgPb%2Fuploads%2F08V6Bm9LBVVndUh29Ec0%2FScreenshot%202024-06-24%20at%2013.46.01.png?alt=media&#x26;token=02431ceb-313b-4b9c-beb4-be8ecff9189a" alt=""><figcaption></figcaption></figure>

* Select a question whose answer should be checked and a logical operation from the corresponding drop-down menus.

<figure><img src="https://1111746725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3YdYFOUPi8bWAiBfJgPb%2Fuploads%2FwbxjHY68WJZAFlWBbqYp%2Fsurvey-creator-logic-tab-add-new-rule.png?alt=media&#x26;token=26994ca5-a5f8-4b6b-8b6c-eb3a568977c2" alt="" width="323"><figcaption></figcaption></figure>

* Then, specify the answer that applies the rule. Some logical operations do not need an answer (for example, Empty or Not empty).
* If the rule needs more than one condition, click the `Add Condition` button. You can use the AND or OR logical operator to combine the new and previous conditions.

<figure><img src="https://1111746725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3YdYFOUPi8bWAiBfJgPb%2Fuploads%2FAdTVD0qlMqrACIqNQuGx%2Fsurvey-creator-multiple-conditions.png?alt=media&#x26;token=0b8c373e-a284-4136-a13d-849d2d6df862" alt="" width="270"><figcaption></figcaption></figure>

* Conditions that you specify in the UI are converted to logical expressions. If you prefer to enter the expressions directly, click the Manual Entry button on the Toolbar.

<figure><img src="https://1111746725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3YdYFOUPi8bWAiBfJgPb%2Fuploads%2FpTJgFz49XDUYtCKbNBde%2Fsurvey-creator-logic-tab-manual-entry%20(1).png?alt=media&#x26;token=6d5171b5-8de4-4fb6-973f-222719c35888" alt=""><figcaption></figcaption></figure>

* Select one of the following actions from the drop-down menu:

<table data-header-hidden><thead><tr><th width="300"></th><th></th></tr></thead><tbody><tr><td><code>Show (hide) page</code></td><td>Makes the selected page visible. If you want to hide the page, invert the logic of your condition.</td></tr><tr><td><code>Enable (disable) page</code></td><td>Makes the selected page editable. If you want to make the page read-only, invert the logic of your condition.</td></tr><tr><td><code>Show (hide) question</code></td><td>Makes the selected question visible. If you want to hide the question, invert the logic of your condition.</td></tr><tr><td><code>Enable (disable) question</code></td><td>Makes the selected question editable. If you want to make the question read-only, invert the logic of your condition.</td></tr><tr><td><code>Make question required</code></td><td>Requires an answer for the selected question.</td></tr><tr><td><code>Complete survey</code></td><td>Completes the survey.</td></tr><tr><td><code>Set answer</code></td><td>Sets a specified answer to the selected question.</td></tr><tr><td><code>Copy answear</code></td><td>Copies the answer from the selected question to a target question.</td></tr><tr><td><code>Skip to question</code></td><td>Navigates the survey to the selected question.</td></tr><tr><td><code>Run expression</code></td><td>Runs a custom expression on the selected question.</td></tr><tr><td><code>Set "Survey Complete" page markup</code></td><td>Specifies custom HTML markup for the Survey Complete page.</td></tr><tr><td></td><td></td></tr></tbody></table>

* Click a rule to expand it and use UI elements to edit the rule. Click `Done` to save your changes.

\ <br>
