Leave a comment at the end of this page or email contact@krishagni.com
Hide/Unhide Fields Based on Value of Another Field
- 1 Introduction
- 2 Examples
- 2.1 Show custom field based on the value of another custom field
- 2.1.1 Example code
- 2.2 Show custom field only on create aliquots page
- 2.2.1 Example code
- 2.3 Show custom field when the visit date is greater than specified date
- 2.3.1 Example code
- 2.4 Show custom field based on specimen lineage and type
- 2.4.1 Example code
- 2.5 Show/Hide custom field based on specimen lineage and multiple type condition
- 2.5.1 Example code
- 2.6 Hide Custom Field For Newer Data Entry
- 2.6.1 Example Code
- 2.7 Show/Hide custom field – Using Regex Matching
- 2.7.1 Example code
- 2.1 Show custom field based on the value of another custom field
- 3 Example JSON
Introduction
You can set fields to show or hide based on values selected in another field using a custom configuration.
The rules added for skip logic are only reflected on add/edit pages. The overview page is a superset of all fields described in the data dictionary.
Below are some examples of how this feature can be used.
Examples
Show custom field based on the value of another custom field
Show the field 'Relation To Proband' only if the value of field 'Proband' is equal to 'No'.
Show custom field only on create aliquots page
Display the custom field 'Storage tube' field while creating the aliquots
Show custom field when the visit date is greater than specified date
Show the 'COVID-19 Test Date' custom field only when the visit date is after 23 January 2020.
Show custom field based on specimen lineage and type
Display 'Upload image' custom field when the specimen lineage is 'New' and the specimen type is 'Whole Blood'.
Show/Hide custom field based on specimen lineage and multiple type condition
Made Method field shows only if the Lineage=Aliquot and Type is RNA or DNA
Example code
Hide Custom Field For Newer Data Entry
Once legacy data is added, the custom field may become unnecessary for new entries, but should remain visible for existing records with values.
Show/Hide custom field – Using Regex Matching
Show the 'Lived Name' custom field only when the PPID starts with 'J'.
Example code
Example JSON
Leave a comment at the end of this page or email contact@krishagni.com