Table of Contents | ||
---|---|---|
|
Introduction
Note |
---|
|
The syntax for skip logic in custom forms has been updated in version 11. To provide better clarity and to allow the use of additional object fields such as participant and visit, the new syntax is now similar to a JSON-based dictionary.
...
specimen.specimenClass == "Cell"
Examples:
Note |
---|
If the field is marked as ‘Required,’ meaning it is mandatory for data entry, adding the showWhen condition will override this 'Required’ setting. |
Use Case 1: Show
...
Form field based on the Specimen Class.
Expand | ||
---|---|---|
| ||
Added the ShowWhen condition in form XML to show field based on Specimen Class. Show form field “Media“ only when specimen class == “Cell“: When Specimen Class is not “Cell” then form field “Media“ is not shown: |
Use Case 2: Show the Form field based on the value of another form field.
Expand | ||
---|---|---|
| ||
Show a field ‘Legal Guardian', if the participant is ‘Age Below 18' is selected as 'Yes’ Data-Entry page when ‘Age Below 18' is selected as 'No’ Data-Entry page when ‘Age Below 18' is selected as 'No’ |
Use Case 3: Show a Custom field based on the value of another custom field.
Expand | ||
---|---|---|
| ||
For participant custom field use = For Specimen custom field use = Added the ShowWhen condition in form XML to show field based on another custom field value. Show custom field “Branch Form field1“ only when custom field “Show visit Form“ value = y. When custom field “Show visit Form“ value = n then custom field “Branch Form field1“ is not shown: |