|
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.
$extendedObj.specimenClass = "Cell
specimen.specimenClass == "Cell"
If the field is marked as ‘Required,’ meaning it is mandatory for data entry, adding the showWhen condition will override this 'Required’ setting. |
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: ![]() |
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’ ![]() |
For participant custom field use = For Specimen custom field use = 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: ![]() |
Requirement: Display the fields consent_provided_via and consented_by when the multi-select field contact_outcome includes one or both of the following values:
The fields should be visible if: contact_outcome contains either "Patient Consented" OR "Sent Consent", OR both. Syntax:
XML file: Screenshots: When no value is selected for contact_outcome field: ![]() When one value is selected for contact_outcome field: ![]() ![]() When more than one value is selected for contact_outcome field: ![]() |