Leave a comment at the end of this page or email contact@krishagni.com
Skip Logic for fields in Form (v11)
Introduction
You need to know how to edit XMLs to define skip logic.
Skip logic can be configured only via XML import.
Skip logic is retained even if the form is edited and saved via UI (enhanced in v6.2).
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.
Below are the example of code to display fields when specimen belongs to Class “Cell“.
Old syntax:
$extendedObj.specimenClass = "Cell
New syntax:
specimen.specimenClass == "Cell"
Examples:
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.
Use Case 2: Show the Form field based on the value of another form field.
Use Case 3: Show a Custom field based on the value of another custom field.
Leave a comment at the end of this page or email contact@krishagni.com