1. What is the Multiple Choice block?
The Multiple Choice Widget allows your operators to select one or more values from a list. Based on this choice, you can condition the rest of the form according to the conditions.
The Multiple Choice widget is found within your editing studio, in the Tasks category.
2. How to configure it?
You need to define the different possible response choices. At least 3 response choices must be defined.
By checking the option Allow Multiple Selections, the operator can choose multiple responses. By default, when this option is not activated, the operator can choose only one response from the choices.
You can set a default choice by checking a box.
You can also link this block with an existing attribute. The attribute must be of the Multiple Choice type.
Thus, you can retrieve the value of an existing attribute within your databases with the "Pre-fill the value in the application" option. You can also update an existing attribute by retrieving the data entered by your operator using the "Allow editing in the application" option.
3. Practically, how to use the Multiple Choice block in my Ermeo form?
Context: Imagine a company performing building inspections. Depending on the type of building inspected, the administrator wants to display a specific form template. There are 3 different types of buildings (called Type A, Type B, and Type C).
First, the operator needs to be asked which type of building they are in, to perform their intervention. Based on their response, a specific template can be displayed to conduct an intervention on a type of building. The question requires the use of a Multiple Choice block.
- Drag and drop the Multiple Choice block into your form. Name it "Building Type".
- In the options, fill in the different response choices:
- Type A
- Type B
- Type C
- Here, do not check Allow Multiple Selections. The operator can choose only one type of building.
- Drag and drop a Model block. Choose the "Building Type A Inspection Model".
- On the Model block, set the following condition: "Show if Building Type is Type A".
- Repeat steps 4 and 5 for the other two models.
- Publish your form and test it on your application.
Here, we used a Multiple Choice widget to condition the display of our form.
🛑 Limitation It is not possible to display the values of the Multiple Choice blocks as a dropdown list on the application.
4. How to set default values on Multiple Choice tasks?
You can now place tags in the default values of your multiple choices. This way, you will be able to unify your data, for example by standardizing your resource attributes and intervention attributes.
- Drag and drop the Multiple Choice block into your form with three different response choices.
- Drag and drop a second Multiple Choice block with at least one choice similar to the previous one.
- Copy the tag from the first block and paste it into the “Default value” box of the second Multiple Choice block.