Currently, it is not possible to create a PV field with a multi-select option in the forms form's module. As a workaround, you can create a sub-form and add the PV field within the sub-form, which will allow selecting multiple values by using add another.
...
This workaround allows you to use the dropdown manager and add multiple values for the field.
...
Configuring the field using CP workflow(JSON)
A subform PVs field can be configured in the CP workflow. Follow the below steps:
Create a form having a subform with PVs field.
Download the XML file for details. See the subform section below:
...
Using the below code, configure the CP
Code Block | ||
---|---|---|
| ||
{ "name" : "specimen.extensionDetail.attrsMap.histological_details", >> sub form variable name "type" : "collection", "fields" : [ { "name" : "histological_qualityy", >> PVs field variable name "caption" : "Histological Quality", "type" : "pvs", "attr" : "histological_quality", >> System dropdown unique ID appears in form xml file or enclosed in brackets when the user clicks a particular dropdown. "selectProp" : "Histological quality", "optional" : true } ] }, |
Using a subform a PVs field can have multiselect option.
...