/
Configuring Field Values per CP
Got feedback or spotted a mistake?
Leave a comment at the end of this page or email contact@krishagni.com
Configuring Field Values per CP
Default OpenSpecimen field values or custom dropdown field values can be configured per CP. The fields can be a dropdown, radio button, multi-select.
Use case: A study is dedicated to the participants of cancer relapse. The Principal Investigator (PI) wants users to add participants for only clinical status values - "Relapse, Distant Site", "Relapse, Not Specified" and "Relapse, Primary Site".
Add the below code in the dictionary section.
clinical_status
{ "name": "visit.clinicalStatus", "caption": "Clinical Status", "type": "dropdown", "optional": false, "defaultValue": "Not Specified", "showIf": { "op": "AND", "rules": [ { "field": "visit.status", "op": "!=", "value": "'Missed Collection'" } ] }, "listSource": { "options": [ "Relapse, Distant Site", "Relapse, Primary Site", "Relapse, Not Specified" ] } }
Example JSON
, multiple selections available,
Related content
Customize Screens (JSON)
Customize Screens (JSON)
More like this
Comprehensive List of JSON Properties and Values
Comprehensive List of JSON Properties and Values
More like this
Configure Fields Based on Multiple Operators
Configure Fields Based on Multiple Operators
Read with this
Configure Fields on Main Pages
Configure Fields on Main Pages
More like this
Attribute Types Examples
Attribute Types Examples
Read with this
Subset PVs and User Dropdown
Subset PVs and User Dropdown
More like this
Got feedback or spotted a mistake?
Leave a comment at the end of this page or email contact@krishagni.com