Leave a comment at the end of this page or email contact@krishagni.com
JSON Fields Configuration
Introduction
This page provides guidance on configuring fields in the dictionary section of the CP/System JSON file. Users can set up fields for participants, visits, and specimens. The fields can be either default or custom, including options such as text, textarea, date, dropdown, and more. Additionally, this page outlines modifications to the fields.
The purpose of this page is to enable users to easily configure the dictionary and display fields on the add/edit or overview pages, accompanied by illustrative examples.
JSON Properties
Properties | Supported Values | Description |
---|---|---|
type | text | Used for simple text field |
textarea | Used for the long text field | |
pvs | Used for PV dropdown field | |
dropdown | Used for dropdown field | |
user | Used for the user defined field | |
date | Used for the only date field | |
datetime | Used for the both date and time field | |
radio | Used for radio select button field | |
file | Used for file upload control field | |
span | Used to make field Read-only | |
toggle-checkbox | Used for Yes/No checkbox | |
note | Used for Note field type | |
dateOnly | true | Allows to store only date |
optional | true | Used to make field mandatory |
false | Used to make field non-mandatory | |
defaultValue | current_date | Set the date type field’s value as current date |
current_user | Set the user defined field’s value as logged in user | |
op | AND | To satisfy both conditions in rule |
OR | To satisfy either of one condition in rule | |
not_exist | To check if the field defined in rule is empty | |
exists | To check if the field defined in rule have value | |
== | To match the specific value for a field | |
!= | To avoid the specific value for a field | |
.indexOf() | To match list of values for a field | |
showInOverviewIf | useShowIf | To use rule defined in “ShowIf” properties for overview |
selectProp | name | To select Property based on field’s “name“ |
value | To select Property based on field’s “value“ in dropdown | |
displayProp | name | To select Property based on field’s “name“ |
value | To select Property based on field’s “value“ in dropdown | |
multiple | true | To allow multi-select dropdown input |
false | To prevent multi-select dropdwon input |
Child pages
Leave a comment at the end of this page or email contact@krishagni.com