Versions Compared

Key

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

...

specimen.specimenClass == "Cell"

Examples:

Use Case 1: Show

...

Form field based on the Specimen Class.
Expand
titleClick here to view details...

Added the ShowWhen condition in form XML to show field based on Specimen Class.

image-20240620-122928.png

Show form field “Media“ only when specimen class == “Cell“:

image-20240620-124052.png

When Specimen Class is not “Cell” then form field “Media“ is not shown:

image-20240620-124345.png

Use Case 2: Show the Form field based on the value of another form field.
Expand
titleClick here to view details...

Show a field ‘Legal Guardian', if the participant is ‘Age Below 18' is selected as 'Yes’

image-20241113-134000.pngImage Added

Data-Entry page when ‘Age Below 18' is selected as 'No’

image-20241113-135248.pngImage Added

Data-Entry page when ‘Age Below 18' is selected as 'No’

image-20241113-135335.pngImage Added

Use Case 3: Show a Custom field based on the value of another custom field.
Expand
titleClick here to view details...

For participant custom field use = cpr.participant.extensionDetail.attrsMap.variableName
For Visit custom field use = visit.extensionDetail.attrsMap.variableName

For Specimen custom field use = specimen.extensionDetail.attrsMap.variableName

Added the ShowWhen condition in form XML to show field based on another custom field value.

image-20240620-132912.png

Show custom field “Branch Form field1“ only when custom field “Show visit Form“ value = y.

image-20240620-133301.png

When custom field “Show visit Form“ value = n then custom field “Branch Form field1“ is not shown:

image-20240620-133450.png