Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com

How to make PV (permissible value) field multi-select?

Currently, it is not possible to create a PV field with a multi-select option in the 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.

A permissible value type field created using a dropdown manager has advantages as the values are easily imported, exported or updated either from UI or bulk import (in case of large sets). Any changes made in the dropdown manager will be reflected in the form.

Example: Field ‘Histological quality’ is a PV field added under a sub form 'Histological details'

  • Create a sub form → Add the PVs field within the sub form

  • Attach the form to CP and you can now add multiple values to the PVs field

 

  • 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

{ "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.

 

Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com