Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

<TBD>In OpenSpecimen, it is possible to add custom fields at the CP level. This feature was introduce to facilitate capturing additional information at the study level. Only one custom form can be attached at the CP custom field level. So this form must have fields required for all the CPs.

Using skip logic in the custom forms, one can show/hide these fields based on the site selected in the CP site dropdown or the site code.

Use Case: Show custom field based on the site or site code selected in the CP site dropdown.

  1. Show field ‘Arkansas Repository ID’ only when the site 'TPCArkansas Repository' is added in the CP sites

<showWhen><![CDATA[$extendedObj.cpSites.siteName = "TPCArkansas Repository"]]></showWhen>

View file
nameInvalid file id - cd5f9ef0-cf04-4a1d-8ea8-036782afe7e3

When the site ‘Arkansas Repository' is not selected

View file
nameInvalid file id - 943448e9-82eb-4c3a-b0b5-245f2251cd75

When the site ‘Arkansas Repository' is added in the list

View file
nameInvalid file id - c6ae7b91-8289-4b21-bbd0-dd987bb99efe

The field display can also be configured based on the site code like below

<showWhen><![CDATA[$extendedObj.cpSites.code = "TPC-codeAR"]]></showWhen>