Dynamic Survey
Esta página aún no se encuentra traducida al español.
Tutorial on using the conditional display option to make a dynamic survey.
Time: 10 minutes
Company Requirements
Our mock company, Ruanda, has a little problem with the task manager shown previously. The company's technical areas would like to have another field in the survey called difficulty rating (number field), but it isn´t necessary for the other departments.
We will now work to offer a dynamic survey, where the user's department will act as a filter for opening other fields.
Pre-Requistes
Access Role
- User with the
admin-statemachines-write
,admin-bots-write
,admin-properties-write
, andadmin-groups-write
permissions to create and modify workflows, bots, elements, and groups. - Or
admin-*-write
which allows all of the above. - User with the
read admin
access role.
Survey
- Having completed the Survey that Starts a Workflow Tutorial.
Steps
- Access the Administrator and open Surveys.
- Look for the Task Creator survey and open it.
This survey was created in the Survey that Starts a Workflow Tutorial.
- From the Components column, drag and drop the Written Answer component to the form template. and set the options according to the next steps.
- In the General tab, set following options:
- Field Label:
Difficulty Rating
- Input Type:
Number
- Identifier :
ratingtask
- Field Label:
- Select the Conditional Display tab and set the following options:
- Commander:
departamenttask
- Criteria:
Regular expression
- Value:
(cybersecurity)|(it)
- Commander:
- Press Save.
Well done!
Now let's head to the Task Manager workflow group and create a new task with the survey button to see what happens...
Result
Once you call the survey, the form will look something like images below. Depending on whether or not you selected the Cybersecurity or IT departments, the Difficulty rating field will appear.
